Просмотр исходного кода

stringapi: Accept strings when setting command errors

Ben Boeckel 12 лет назад
Родитель
Сommit
dddbd2c7fa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmCommand.h

+ 1 - 1
Source/cmCommand.h

@@ -166,7 +166,7 @@ public:
   /**
    * Set the error message
    */
-  void SetError(const char* e)
+  void SetError(const std::string& e)
     {
     this->Error = this->GetName();
     this->Error += " ";