瀏覽代碼

reduced Ogre string bloat

The Ogre importer used std::string where a string literal would have been sufficient. Saves another 600 B of code and data.
Krishty 4 年之前
父節點
當前提交
2a126f9f62
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      code/AssetLib/Ogre/OgreBinarySerializer.cpp

+ 3 - 3
code/AssetLib/Ogre/OgreBinarySerializer.cpp

@@ -55,9 +55,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 namespace Assimp {
 namespace Ogre {
 
-const std::string MESH_VERSION_1_8 = "[MeshSerializer_v1.8]";
-const std::string SKELETON_VERSION_1_8 = "[Serializer_v1.80]";
-const std::string SKELETON_VERSION_1_1 = "[Serializer_v1.10]";
+static constexpr auto MESH_VERSION_1_8 = "[MeshSerializer_v1.8]";
+static constexpr auto SKELETON_VERSION_1_8 = "[Serializer_v1.80]";
+static constexpr auto SKELETON_VERSION_1_1 = "[Serializer_v1.10]";
 
 const unsigned short HEADER_CHUNK_ID = 0x1000;