Sfoglia il codice sorgente

Merge pull request #1469 from Azaezel/alpha41/docingClamps

use the stringtable to hold generated docstrings
Brian Roberts 4 mesi fa
parent
commit
a8c3ad5141
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Engine/source/console/consoleFunctions.cpp

+ 1 - 1
Engine/source/console/consoleFunctions.cpp

@@ -2859,7 +2859,7 @@ const char* getDocsLink(const char* filename, U32 lineNumber)
    String baseUrL = String(Con::getVariable("Pref::DocURL","https://github.com/TorqueGameEngines/Torque3D/blob/development/Engine/source"));
    String URL = String("<a:") + baseUrL + fileLineString + String(">docs</a>");
 
-   return (new String(URL))->c_str();
+   return StringTable->insert(URL.c_str());
 }
 
 bool getDocsURL(void* obj, const char* array, const char* data)