浏览代码

Merge pull request #3856 from krishty/fix-sib-string-waste

fixed bloat in SIB importer
Kim Kulling 4 年之前
父节点
当前提交
53563a8624
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      code/AssetLib/SIB/SIBImporter.cpp

+ 1 - 2
code/AssetLib/SIB/SIBImporter.cpp

@@ -180,8 +180,7 @@ static void UnknownChunk(StreamReaderLE * /*stream*/, const SIBChunk &chunk) {
 // Reads a UTF-16LE string and returns it at UTF-8.
 static aiString ReadString(StreamReaderLE *stream, uint32_t numWChars) {
     if (nullptr == stream || 0 == numWChars) {
-        static const aiString empty;
-        return empty;
+        return aiString();
     }
 
     // Allocate buffers (max expansion is 1 byte -> 4 bytes for UTF-8)