Explorar el Código

* BugFix: Correct not setting the string to interned when allocating a StringData with a DataChunker in str.cpp.

Robert MacGregor hace 3 años
padre
commit
6d0e81763b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Engine/source/core/util/str.cpp

+ 1 - 1
Engine/source/core/util/str.cpp

@@ -647,7 +647,7 @@ String String::intern() const
       
    // Create new.
    
-   StringData* data = StringData::Create(c_str(), length(), sInternTable->mChunker);
+   StringData* data = StringData::Create(c_str(), length(), sInternTable->mChunker, true);
    
    //StringData* data = new ( length(), sInternTable->mChunker ) StringData( c_str(), true );
    iter = sInternTable->insertUnique( data, data );