Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Variables With Literals #4885

Merged
merged 2 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions code/AssetLib/Blender/BlenderBMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace Assimp {
template <>
const char *LogFunctions<BlenderBMeshConverter>::Prefix() {
static auto prefix = "BLEND_BMESH: ";
return prefix;
return "BLEND_BMESH: ";
}
} // namespace Assimp

Expand Down
3 changes: 1 addition & 2 deletions code/AssetLib/Blender/BlenderLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ namespace Assimp {

template <>
const char *LogFunctions<BlenderImporter>::Prefix() {
static auto prefix = "BLEND: ";
return prefix;
return "BLEND: ";
}

} // namespace Assimp
Expand Down
6 changes: 2 additions & 4 deletions code/AssetLib/Blender/BlenderTessellator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ namspace Assimp
{
template< > const char* LogFunctions< BlenderTessellatorGL >::Prefix()
{
static auto prefix = "BLEND_TESS_GL: ";
return prefix;
return "BLEND_TESS_GL: ";
}
}

Expand Down Expand Up @@ -259,8 +258,7 @@ namespace Assimp
{
template< > const char* LogFunctions< BlenderTessellatorP2T >::Prefix()
{
static auto prefix = "BLEND_TESS_P2T: ";
return prefix;
return "BLEND_TESS_P2T: ";
}
}

Expand Down
3 changes: 1 addition & 2 deletions code/AssetLib/C4D/C4DImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ void GetWriterInfo(int &id, String &appname) {

namespace Assimp {
template<> const char* LogFunctions<C4DImporter>::Prefix() {
static auto prefix = "C4D: ";
return prefix;
return "C4D: ";
}
}

Expand Down
3 changes: 1 addition & 2 deletions code/AssetLib/FBX/FBXImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ namespace Assimp {

template <>
const char *LogFunctions<FBXImporter>::Prefix() {
static auto prefix = "FBX: ";
return prefix;
return "FBX: ";
}

} // namespace Assimp
Expand Down
3 changes: 1 addition & 2 deletions code/AssetLib/IFC/IFCLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace Assimp {
template <>
const char *LogFunctions<IFCImporter>::Prefix() {
static auto prefix = "IFC: ";
return prefix;
return "IFC: ";
}
} // namespace Assimp

Expand Down
3 changes: 1 addition & 2 deletions code/AssetLib/XGL/XGLLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ namespace Assimp { // this has to be in here because LogFunctions is in ::Assimp

template <>
const char *LogFunctions<XGLImporter>::Prefix() {
static auto prefix = "XGL: ";
return prefix;
return "XGL: ";
}

} // namespace Assimp
Expand Down