소스 검색

adress https://github.com/TorqueGameEngines/Torque3D/pull/1015#discussion_r1179352178
docs for CodeBlock::calcBreakList() sizing

AzaezelX 2 년 전
부모
커밋
339393aa85
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      Engine/source/console/codeBlock.cpp
  2. 1 1
      Engine/source/console/consoleObject.h
  3. 1 1
      Engine/source/console/engineExports.h

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

@@ -309,7 +309,7 @@ void CodeBlock::calcBreakList()
    if (seqCount)
       size++;
 
-   breakList = new U32[size+3];
+   breakList = new U32[size+3]; //lineBreakPairs plus pad
    breakListSize = size;
    line = -1;
    seqCount = 0;

+ 1 - 1
Engine/source/console/consoleObject.h

@@ -863,7 +863,7 @@ public:
 public:
 
    /// Get the classname from a class tag.
-   static const char* lookupClassName(const U32 in_classTag) {};
+   static const char* lookupClassName(const U32 in_classTag) { return ""; };
 
    /// @name Fields
    /// @{

+ 1 - 1
Engine/source/console/engineExports.h

@@ -166,7 +166,7 @@ class EngineExportScope : public EngineExport
    private:
    
       /// Constructor for the global scope.
-      EngineExportScope():mExports(NULL){}
+      EngineExportScope():mExports(nullptr){}
 };