Explorar o código

ENH: replace freeze with delete

Bill Hoffman %!s(int64=23) %!d(string=hai) anos
pai
achega
ffbdca2b84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmVTKMakeInstantiatorCommand.cxx

+ 1 - 1
Source/cmVTKMakeInstantiatorCommand.cxx

@@ -219,7 +219,7 @@ cmVTKMakeInstantiatorCommand::GenerateCreationFileName(unsigned int block)
   std::strstream nameStr;
   nameStr << m_ClassName.c_str() << block << ".cxx" << std::ends;
   std::string result = nameStr.str();
-  nameStr.rdbuf()->freeze(0);
+  delete [] nameStr.str();
   return result;
 }