Ver código fonte

Remove TODO. Typo fix.

Malcolm Tyrrell 4 anos atrás
pai
commit
6e4b9d267b
2 arquivos alterados com 1 adições e 6 exclusões
  1. 1 1
      code/AssetLib/AC/ACLoader.cpp
  2. 0 5
      code/Common/DefaultLogger.cpp

+ 1 - 1
code/AssetLib/AC/ACLoader.cpp

@@ -116,7 +116,7 @@ inline const char *TAcCheckedLoadFloatArray(const char *buffer, const char *name
     buffer = AcSkipToNextToken(buffer);
     if (0 != name_length) {
         if (0 != strncmp(buffer, name, name_length) || !IsSpace(buffer[name_length])) {
-            ASSIMP_LOG_ERROR("AC3D: Unexpexted token. " + std::string(name) + " was expected.");
+            ASSIMP_LOG_ERROR("AC3D: Unexpected token. ", name, " was expected.");
             return buffer;
         }
         buffer += name_length + 1;

+ 0 - 5
code/Common/DefaultLogger.cpp

@@ -165,7 +165,6 @@ Logger *DefaultLogger::create(const char *name /*= "AssimpLog.txt"*/,
 // ----------------------------------------------------------------------------------
 void Logger::debugInternal(Assimp::Formatter::format f) {
     std::string message = f;
-    // TODO: Should limit sizes in the formatter.
     // SECURITY FIX: see above
     if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
         return;
@@ -176,7 +175,6 @@ void Logger::debugInternal(Assimp::Formatter::format f) {
 // ----------------------------------------------------------------------------------
 void Logger::verboseDebugInternal(Assimp::Formatter::format f) {
     std::string message = f;
-    // TODO: Should limit sizes in the formatter.
     // SECURITY FIX: see above
     if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
         return;
@@ -187,7 +185,6 @@ void Logger::verboseDebugInternal(Assimp::Formatter::format f) {
 // ----------------------------------------------------------------------------------
 void Logger::infoInternal(Assimp::Formatter::format f) {
     std::string message = f;
-    // TODO: Should limit sizes in the formatter.
     // SECURITY FIX: see above
     if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
         return;
@@ -198,7 +195,6 @@ void Logger::infoInternal(Assimp::Formatter::format f) {
 // ----------------------------------------------------------------------------------
 void Logger::warnInternal(Assimp::Formatter::format f) {
     std::string message = f;
-    // TODO: Should limit sizes in the formatter.
     // SECURITY FIX: see above
     if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
         return;
@@ -209,7 +205,6 @@ void Logger::warnInternal(Assimp::Formatter::format f) {
 // ----------------------------------------------------------------------------------
 void Logger::errorInternal(Assimp::Formatter::format f) {
     std::string message = f;
-    // TODO: Should limit sizes in the formatter.
     // SECURITY FIX: see above
     if (message.length() > MAX_LOG_MESSAGE_LENGTH) {
         return;