Bläddra i källkod

BUG: remove tabs from classnames

Bill Hoffman 25 år sedan
förälder
incheckning
366c783f6c
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      Source/cmSystemTools.cxx

+ 5 - 0
Source/cmSystemTools.cxx

@@ -41,6 +41,11 @@ std::string cmSystemTools::CleanUpName(const char* name)
     }
   
   pos = className.find(' ');
+  if(pos != std::string::npos)
+    {
+    className = className.substr(0, pos);
+    }
+  pos = className.find('\t');
   if(pos != std::string::npos)
     {
     className = className.substr(0, pos);