Browse Source

stringapi: Command names

Ben Boeckel 11 years ago
parent
commit
85fc9f26a7
100 changed files with 104 additions and 104 deletions
  1. 1 1
      Source/CTest/cmCTestBuildCommand.h
  2. 1 1
      Source/CTest/cmCTestConfigureCommand.h
  3. 1 1
      Source/CTest/cmCTestCoverageCommand.h
  4. 1 1
      Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h
  5. 1 1
      Source/CTest/cmCTestMemCheckCommand.h
  6. 1 1
      Source/CTest/cmCTestReadCustomFilesCommand.h
  7. 1 1
      Source/CTest/cmCTestRunScriptCommand.h
  8. 1 1
      Source/CTest/cmCTestSleepCommand.h
  9. 1 1
      Source/CTest/cmCTestStartCommand.h
  10. 1 1
      Source/CTest/cmCTestSubmitCommand.h
  11. 1 1
      Source/CTest/cmCTestTestCommand.h
  12. 4 4
      Source/CTest/cmCTestTestHandler.cxx
  13. 1 1
      Source/CTest/cmCTestUpdateCommand.h
  14. 1 1
      Source/CTest/cmCTestUploadCommand.h
  15. 1 1
      Source/cmAddCompileOptionsCommand.h
  16. 1 1
      Source/cmAddCustomCommandCommand.h
  17. 1 1
      Source/cmAddCustomTargetCommand.h
  18. 1 1
      Source/cmAddDefinitionsCommand.h
  19. 1 1
      Source/cmAddDependenciesCommand.h
  20. 1 1
      Source/cmAddExecutableCommand.h
  21. 1 1
      Source/cmAddLibraryCommand.h
  22. 1 1
      Source/cmAddSubDirectoryCommand.h
  23. 1 1
      Source/cmAddTestCommand.h
  24. 1 1
      Source/cmAuxSourceDirectoryCommand.h
  25. 1 1
      Source/cmBreakCommand.h
  26. 1 1
      Source/cmBuildCommand.h
  27. 1 1
      Source/cmBuildNameCommand.h
  28. 1 1
      Source/cmCMakeHostSystemInformationCommand.h
  29. 1 1
      Source/cmCMakeMinimumRequired.h
  30. 1 1
      Source/cmCMakePolicyCommand.h
  31. 1 1
      Source/cmCommand.h
  32. 1 1
      Source/cmConfigureFileCommand.h
  33. 1 1
      Source/cmCreateTestSourceList.h
  34. 1 1
      Source/cmDefinePropertyCommand.h
  35. 2 2
      Source/cmDocumentationSection.h
  36. 1 1
      Source/cmElseCommand.h
  37. 1 1
      Source/cmElseIfCommand.h
  38. 1 1
      Source/cmEnableLanguageCommand.h
  39. 1 1
      Source/cmEnableTestingCommand.h
  40. 1 1
      Source/cmEndForEachCommand.h
  41. 1 1
      Source/cmEndFunctionCommand.h
  42. 1 1
      Source/cmEndIfCommand.h
  43. 1 1
      Source/cmEndMacroCommand.h
  44. 1 1
      Source/cmEndWhileCommand.h
  45. 1 1
      Source/cmExecProgramCommand.h
  46. 1 1
      Source/cmExecuteProcessCommand.h
  47. 1 1
      Source/cmExportCommand.h
  48. 1 1
      Source/cmExportLibraryDependenciesCommand.h
  49. 1 1
      Source/cmFLTKWrapUICommand.h
  50. 1 1
      Source/cmFileCommand.h
  51. 1 1
      Source/cmFindFileCommand.h
  52. 1 1
      Source/cmFindLibraryCommand.h
  53. 1 1
      Source/cmFindPackageCommand.h
  54. 1 1
      Source/cmFindPathCommand.h
  55. 1 1
      Source/cmFindProgramCommand.h
  56. 1 1
      Source/cmForEachCommand.h
  57. 1 1
      Source/cmFunctionCommand.cxx
  58. 1 1
      Source/cmFunctionCommand.h
  59. 1 1
      Source/cmGetCMakePropertyCommand.h
  60. 1 1
      Source/cmGetDirectoryPropertyCommand.h
  61. 1 1
      Source/cmGetFilenameComponentCommand.h
  62. 1 1
      Source/cmGetPropertyCommand.h
  63. 1 1
      Source/cmGetSourceFilePropertyCommand.h
  64. 1 1
      Source/cmGetTargetPropertyCommand.h
  65. 1 1
      Source/cmGetTestPropertyCommand.h
  66. 1 1
      Source/cmIfCommand.h
  67. 1 1
      Source/cmIncludeCommand.h
  68. 1 1
      Source/cmIncludeDirectoryCommand.h
  69. 1 1
      Source/cmIncludeExternalMSProjectCommand.h
  70. 1 1
      Source/cmIncludeRegularExpressionCommand.h
  71. 1 1
      Source/cmInstallCommand.h
  72. 1 1
      Source/cmInstallFilesCommand.h
  73. 1 1
      Source/cmInstallProgramsCommand.h
  74. 1 1
      Source/cmInstallTargetsCommand.h
  75. 1 1
      Source/cmLinkDirectoriesCommand.h
  76. 1 1
      Source/cmLinkLibrariesCommand.h
  77. 1 1
      Source/cmListCommand.h
  78. 1 1
      Source/cmLoadCacheCommand.h
  79. 1 1
      Source/cmLoadCommandCommand.cxx
  80. 1 1
      Source/cmLoadCommandCommand.h
  81. 1 1
      Source/cmMacroCommand.cxx
  82. 1 1
      Source/cmMacroCommand.h
  83. 1 1
      Source/cmMakeDirectoryCommand.h
  84. 1 1
      Source/cmMarkAsAdvancedCommand.h
  85. 1 1
      Source/cmMathCommand.h
  86. 1 1
      Source/cmMessageCommand.h
  87. 1 1
      Source/cmOptionCommand.h
  88. 1 1
      Source/cmOutputRequiredFilesCommand.h
  89. 1 1
      Source/cmProjectCommand.h
  90. 1 1
      Source/cmQTWrapCPPCommand.h
  91. 1 1
      Source/cmQTWrapUICommand.h
  92. 1 1
      Source/cmRemoveCommand.h
  93. 1 1
      Source/cmRemoveDefinitionsCommand.h
  94. 1 1
      Source/cmReturnCommand.h
  95. 1 1
      Source/cmSeparateArgumentsCommand.h
  96. 1 1
      Source/cmSetCommand.h
  97. 1 1
      Source/cmSetDirectoryPropertiesCommand.h
  98. 1 1
      Source/cmSetPropertyCommand.h
  99. 1 1
      Source/cmSetSourceFilesPropertiesCommand.h
  100. 1 1
      Source/cmSetTargetPropertiesCommand.h

+ 1 - 1
Source/CTest/cmCTestBuildCommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_build";}
+  virtual std::string GetName() const { return "ctest_build";}
 
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);

+ 1 - 1
Source/CTest/cmCTestConfigureCommand.h

@@ -38,7 +38,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_configure";}
+  virtual std::string GetName() const { return "ctest_configure";}
 
   cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand);
 

+ 1 - 1
Source/CTest/cmCTestCoverageCommand.h

@@ -39,7 +39,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_coverage";}
+  virtual std::string GetName() const { return "ctest_coverage";}
 
   cmTypeMacro(cmCTestCoverageCommand, cmCTestHandlerCommand);
 

+ 1 - 1
Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h

@@ -48,7 +48,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_empty_binary_directory";}
+  virtual std::string GetName() const { return "ctest_empty_binary_directory";}
 
   cmTypeMacro(cmCTestEmptyBinaryDirectoryCommand, cmCTestCommand);
 

+ 1 - 1
Source/CTest/cmCTestMemCheckCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_memcheck";}
+  virtual std::string GetName() const { return "ctest_memcheck";}
 
   cmTypeMacro(cmCTestMemCheckCommand, cmCTestTestCommand);
 

+ 1 - 1
Source/CTest/cmCTestReadCustomFilesCommand.h

@@ -46,7 +46,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_read_custom_files";}
+  virtual std::string GetName() const { return "ctest_read_custom_files";}
 
   cmTypeMacro(cmCTestReadCustomFilesCommand, cmCTestCommand);
 

+ 1 - 1
Source/CTest/cmCTestRunScriptCommand.h

@@ -47,7 +47,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_run_script";}
+  virtual std::string GetName() const { return "ctest_run_script";}
 
   cmTypeMacro(cmCTestRunScriptCommand, cmCTestCommand);
 };

+ 1 - 1
Source/CTest/cmCTestSleepCommand.h

@@ -47,7 +47,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_sleep";}
+  virtual std::string GetName() const { return "ctest_sleep";}
 
   cmTypeMacro(cmCTestSleepCommand, cmCTestCommand);
 

+ 1 - 1
Source/CTest/cmCTestStartCommand.h

@@ -55,7 +55,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_start";}
+  virtual std::string GetName() const { return "ctest_start";}
 
   cmTypeMacro(cmCTestStartCommand, cmCTestCommand);
 

+ 1 - 1
Source/CTest/cmCTestSubmitCommand.h

@@ -48,7 +48,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_submit";}
+  virtual std::string GetName() const { return "ctest_submit";}
 
   cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
 

+ 1 - 1
Source/CTest/cmCTestTestCommand.h

@@ -39,7 +39,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_test";}
+  virtual std::string GetName() const { return "ctest_test";}
 
   cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand);
 

+ 4 - 4
Source/CTest/cmCTestTestHandler.cxx

@@ -60,7 +60,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "subdirs";}
+  virtual std::string GetName() const { return "subdirs";}
 
   cmTypeMacro(cmCTestSubdirCommand, cmCommand);
 
@@ -157,7 +157,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_subdirectory";}
+  virtual std::string GetName() const { return "add_subdirectory";}
 
   cmTypeMacro(cmCTestAddSubdirectoryCommand, cmCommand);
 
@@ -243,7 +243,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_test";}
+  virtual std::string GetName() const { return "add_test";}
 
   cmTypeMacro(cmCTestAddTestCommand, cmCommand);
 
@@ -287,7 +287,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "set_tests_properties";}
+  virtual std::string GetName() const { return "set_tests_properties";}
 
   cmTypeMacro(cmCTestSetTestsPropertiesCommand, cmCommand);
 

+ 1 - 1
Source/CTest/cmCTestUpdateCommand.h

@@ -39,7 +39,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_update";}
+  virtual std::string GetName() const { return "ctest_update";}
 
   cmTypeMacro(cmCTestUpdateCommand, cmCTestHandlerCommand);
 

+ 1 - 1
Source/CTest/cmCTestUploadCommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "ctest_upload";}
+  virtual std::string GetName() const { return "ctest_upload";}
 
   cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand);
 

+ 1 - 1
Source/cmAddCompileOptionsCommand.h

@@ -35,7 +35,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "add_compile_options";}
+  virtual std::string GetName() const {return "add_compile_options";}
 
   cmTypeMacro(cmAddCompileOptionsCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddCustomCommandCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "add_custom_command";}
+  virtual std::string GetName() const {return "add_custom_command";}
 
   cmTypeMacro(cmAddCustomCommandCommand, cmCommand);
 protected:

+ 1 - 1
Source/cmAddCustomTargetCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const
+  virtual std::string GetName() const
     {return "add_custom_target";}
 
   cmTypeMacro(cmAddCustomTargetCommand, cmCommand);

+ 1 - 1
Source/cmAddDefinitionsCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "add_definitions";}
+  virtual std::string GetName() const {return "add_definitions";}
 
   cmTypeMacro(cmAddDefinitionsCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddDependenciesCommand.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_dependencies";}
+  virtual std::string GetName() const { return "add_dependencies";}
 
   cmTypeMacro(cmAddDependenciesCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddExecutableCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_executable";}
+  virtual std::string GetName() const { return "add_executable";}
 
   cmTypeMacro(cmAddExecutableCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddLibraryCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_library";}
+  virtual std::string GetName() const { return "add_library";}
 
   cmTypeMacro(cmAddLibraryCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddSubDirectoryCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_subdirectory";}
+  virtual std::string GetName() const { return "add_subdirectory";}
 
   cmTypeMacro(cmAddSubDirectoryCommand, cmCommand);
 };

+ 1 - 1
Source/cmAddTestCommand.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "add_test";}
+  virtual std::string GetName() const { return "add_test";}
 
   cmTypeMacro(cmAddTestCommand, cmCommand);
 private:

+ 1 - 1
Source/cmAuxSourceDirectoryCommand.h

@@ -44,7 +44,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "aux_source_directory";}
+  virtual std::string GetName() const { return "aux_source_directory";}
 
   cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
 };

+ 1 - 1
Source/cmBreakCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "break";}
+  virtual std::string GetName() const {return "break";}
 
   cmTypeMacro(cmBreakCommand, cmCommand);
 };

+ 1 - 1
Source/cmBuildCommand.h

@@ -50,7 +50,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "build_command";}
+  virtual std::string GetName() const {return "build_command";}
 
   cmTypeMacro(cmBuildCommand, cmCommand);
 };

+ 1 - 1
Source/cmBuildNameCommand.h

@@ -21,7 +21,7 @@ public:
   virtual cmCommand* Clone() { return new cmBuildNameCommand; }
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
-  virtual const char* GetName() const {return "build_name";}
+  virtual std::string GetName() const {return "build_name";}
   virtual bool IsScriptable() const { return true; }
   virtual bool IsDiscouraged() const { return true; }
 };

+ 1 - 1
Source/cmCMakeHostSystemInformationCommand.h

@@ -48,7 +48,7 @@ public:
    /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const
+  virtual std::string GetName() const
     {
     return "cmake_host_system_information";
     }

+ 1 - 1
Source/cmCMakeMinimumRequired.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "cmake_minimum_required";}
+  virtual std::string GetName() const {return "cmake_minimum_required";}
 
   cmTypeMacro(cmCMakeMinimumRequired, cmCommand);
 

+ 1 - 1
Source/cmCMakePolicyCommand.h

@@ -46,7 +46,7 @@ public:
  /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "cmake_policy";}
+  virtual std::string GetName() const {return "cmake_policy";}
 
   cmTypeMacro(cmCMakePolicyCommand, cmCommand);
 private:

+ 1 - 1
Source/cmCommand.h

@@ -124,7 +124,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const = 0;
+  virtual std::string GetName() const = 0;
 
   /**
    * Enable the command.

+ 1 - 1
Source/cmConfigureFileCommand.h

@@ -34,7 +34,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "configure_file";}
+  virtual std::string GetName() const { return "configure_file";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmCreateTestSourceList.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "create_test_sourcelist";}
+  virtual std::string GetName() const {return "create_test_sourcelist";}
 
   cmTypeMacro(cmCreateTestSourceList, cmCommand);
 };

+ 1 - 1
Source/cmDefinePropertyCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "define_property";}
+  virtual std::string GetName() const { return "define_property";}
 
   cmTypeMacro(cmDefinePropertyCommand, cmCommand);
 private:

+ 2 - 2
Source/cmDocumentationSection.h

@@ -34,8 +34,8 @@ public:
   void Clear() { this->Entries.clear(); }
 
   /** Return the name of this section. */
-  const char* GetName() const
-  { return this->Name.c_str(); }
+  std::string GetName() const
+  { return this->Name; }
 
   /** Return a pointer to the first entry of this section. */
   const std::vector<cmDocumentationEntry> &GetEntries() const

+ 1 - 1
Source/cmElseCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "else";}
+  virtual std::string GetName() const { return "else";}
 
   cmTypeMacro(cmElseCommand, cmCommand);
 };

+ 1 - 1
Source/cmElseIfCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "elseif";}
+  virtual std::string GetName() const { return "elseif";}
 
   cmTypeMacro(cmElseIfCommand, cmCommand);
 };

+ 1 - 1
Source/cmEnableLanguageCommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "enable_language";}
+  virtual std::string GetName() const {return "enable_language";}
 
   cmTypeMacro(cmEnableLanguageCommand, cmCommand);
 };

+ 1 - 1
Source/cmEnableTestingCommand.h

@@ -48,7 +48,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "enable_testing";}
+  virtual std::string GetName() const { return "enable_testing";}
 
   cmTypeMacro(cmEnableTestingCommand, cmCommand);
 

+ 1 - 1
Source/cmEndForEachCommand.h

@@ -52,7 +52,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "endforeach";}
+  virtual std::string GetName() const { return "endforeach";}
 
   cmTypeMacro(cmEndForEachCommand, cmCommand);
 };

+ 1 - 1
Source/cmEndFunctionCommand.h

@@ -52,7 +52,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "endfunction";}
+  virtual std::string GetName() const { return "endfunction";}
 
   cmTypeMacro(cmEndFunctionCommand, cmCommand);
 };

+ 1 - 1
Source/cmEndIfCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "endif";}
+  virtual std::string GetName() const { return "endif";}
 
   cmTypeMacro(cmEndIfCommand, cmCommand);
 };

+ 1 - 1
Source/cmEndMacroCommand.h

@@ -52,7 +52,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "endmacro";}
+  virtual std::string GetName() const { return "endmacro";}
 
   cmTypeMacro(cmEndMacroCommand, cmCommand);
 };

+ 1 - 1
Source/cmEndWhileCommand.h

@@ -52,7 +52,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "endwhile";}
+  virtual std::string GetName() const { return "endwhile";}
 
   cmTypeMacro(cmEndWhileCommand, cmCommand);
 };

+ 1 - 1
Source/cmExecProgramCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const
+  virtual std::string GetName() const
     {return "exec_program";}
 
   /**

+ 1 - 1
Source/cmExecuteProcessCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const
+  virtual std::string GetName() const
     {return "execute_process";}
 
   /**

+ 1 - 1
Source/cmExportCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "export";}
+  virtual std::string GetName() const { return "export";}
 
   cmTypeMacro(cmExportCommand, cmCommand);
 

+ 1 - 1
Source/cmExportLibraryDependenciesCommand.h

@@ -21,7 +21,7 @@ public:
   virtual cmCommand* Clone() { return new cmExportLibraryDependenciesCommand; }
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
-  virtual const char* GetName() const { return "export_library_dependencies";}
+  virtual std::string GetName() const { return "export_library_dependencies";}
   virtual bool IsDiscouraged() const { return true; }
 
   virtual void FinalPass();

+ 1 - 1
Source/cmFLTKWrapUICommand.h

@@ -52,7 +52,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "fltk_wrap_ui";}
+  virtual std::string GetName() const { return "fltk_wrap_ui";}
 
 private:
   /**

+ 1 - 1
Source/cmFileCommand.h

@@ -46,7 +46,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "file";}
+  virtual std::string GetName() const { return "file";}
 
   cmTypeMacro(cmFileCommand, cmCommand);
 

+ 1 - 1
Source/cmFindFileCommand.h

@@ -33,7 +33,7 @@ public:
     {
     return new cmFindFileCommand;
     }
-  virtual const char* GetName() const { return "find_file";}
+  virtual std::string GetName() const { return "find_file";}
 
   cmTypeMacro(cmFindFileCommand, cmFindPathCommand);
 };

+ 1 - 1
Source/cmFindLibraryCommand.h

@@ -49,7 +49,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "find_library";}
+  virtual std::string GetName() const {return "find_library";}
 
   cmTypeMacro(cmFindLibraryCommand, cmFindBase);
 

+ 1 - 1
Source/cmFindPackageCommand.h

@@ -49,7 +49,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "find_package";}
+  virtual std::string GetName() const { return "find_package";}
 
   cmTypeMacro(cmFindPackageCommand, cmFindCommon);
 private:

+ 1 - 1
Source/cmFindPathCommand.h

@@ -49,7 +49,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "find_path";}
+  virtual std::string GetName() const {return "find_path";}
 
   cmTypeMacro(cmFindPathCommand, cmFindBase);
   bool IncludeFileInPath;

+ 1 - 1
Source/cmFindProgramCommand.h

@@ -48,7 +48,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "find_program";}
+  virtual std::string GetName() const { return "find_program";}
 
   cmTypeMacro(cmFindProgramCommand, cmFindBase);
 

+ 1 - 1
Source/cmForEachCommand.h

@@ -59,7 +59,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "foreach";}
+  virtual std::string GetName() const { return "foreach";}
 
   cmTypeMacro(cmForEachCommand, cmCommand);
 private:

+ 1 - 1
Source/cmFunctionCommand.cxx

@@ -64,7 +64,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return this->Args[0].c_str(); }
+  virtual std::string GetName() const { return this->Args[0]; }
 
   cmTypeMacro(cmFunctionHelperCommand, cmCommand);
 

+ 1 - 1
Source/cmFunctionCommand.h

@@ -57,7 +57,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "function";}
+  virtual std::string GetName() const { return "function";}
 
   cmTypeMacro(cmFunctionCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetCMakePropertyCommand.h

@@ -37,7 +37,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_cmake_property";}
+  virtual std::string GetName() const { return "get_cmake_property";}
 
   cmTypeMacro(cmGetCMakePropertyCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetDirectoryPropertyCommand.h

@@ -37,7 +37,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_directory_property";}
+  virtual std::string GetName() const { return "get_directory_property";}
 
   cmTypeMacro(cmGetDirectoryPropertyCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetFilenameComponentCommand.h

@@ -46,7 +46,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_filename_component";}
+  virtual std::string GetName() const { return "get_filename_component";}
 
   cmTypeMacro(cmGetFilenameComponentCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetPropertyCommand.h

@@ -39,7 +39,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_property";}
+  virtual std::string GetName() const { return "get_property";}
 
   cmTypeMacro(cmGetPropertyCommand, cmCommand);
 private:

+ 1 - 1
Source/cmGetSourceFilePropertyCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_source_file_property";}
+  virtual std::string GetName() const { return "get_source_file_property";}
 
   cmTypeMacro(cmGetSourceFilePropertyCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetTargetPropertyCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_target_property";}
+  virtual std::string GetName() const { return "get_target_property";}
 
   cmTypeMacro(cmGetTargetPropertyCommand, cmCommand);
 };

+ 1 - 1
Source/cmGetTestPropertyCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "get_test_property";}
+  virtual std::string GetName() const { return "get_test_property";}
 
   cmTypeMacro(cmGetTestPropertyCommand, cmCommand);
 };

+ 1 - 1
Source/cmIfCommand.h

@@ -63,7 +63,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "if";}
+  virtual std::string GetName() const { return "if";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmIncludeCommand.h

@@ -46,7 +46,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "include";}
+  virtual std::string GetName() const {return "include";}
 
   cmTypeMacro(cmIncludeCommand, cmCommand);
 };

+ 1 - 1
Source/cmIncludeDirectoryCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "include_directories";}
+  virtual std::string GetName() const { return "include_directories";}
 
   cmTypeMacro(cmIncludeDirectoryCommand, cmCommand);
 

+ 1 - 1
Source/cmIncludeExternalMSProjectCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "include_external_msproject";}
+  virtual std::string GetName() const {return "include_external_msproject";}
 
   cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand);
 };

+ 1 - 1
Source/cmIncludeRegularExpressionCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "include_regular_expression";}
+  virtual std::string GetName() const {return "include_regular_expression";}
 
   cmTypeMacro(cmIncludeRegularExpressionCommand, cmCommand);
 };

+ 1 - 1
Source/cmInstallCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "install";}
+  virtual std::string GetName() const { return "install";}
 
   cmTypeMacro(cmInstallCommand, cmCommand);
 

+ 1 - 1
Source/cmInstallFilesCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "install_files";}
+  virtual std::string GetName() const { return "install_files";}
 
   /**
    * This is called at the end after all the information

+ 1 - 1
Source/cmInstallProgramsCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "install_programs";}
+  virtual std::string GetName() const { return "install_programs";}
 
   /**
    * This is called at the end after all the information

+ 1 - 1
Source/cmInstallTargetsCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "install_targets";}
+  virtual std::string GetName() const { return "install_targets";}
 
   /** This command is kept for compatibility with older CMake versions. */
   virtual bool IsDiscouraged() const

+ 1 - 1
Source/cmLinkDirectoriesCommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "link_directories";}
+  virtual std::string GetName() const { return "link_directories";}
 
   cmTypeMacro(cmLinkDirectoriesCommand, cmCommand);
 private:

+ 1 - 1
Source/cmLinkLibrariesCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "link_libraries";}
+  virtual std::string GetName() const { return "link_libraries";}
 
   /** This command is kept for compatibility with older CMake versions. */
   virtual bool IsDiscouraged() const

+ 1 - 1
Source/cmListCommand.h

@@ -44,7 +44,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "list";}
+  virtual std::string GetName() const { return "list";}
 
   cmTypeMacro(cmListCommand, cmCommand);
 protected:

+ 1 - 1
Source/cmLoadCacheCommand.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "load_cache";}
+  virtual std::string GetName() const { return "load_cache";}
 
   cmTypeMacro(cmLoadCacheCommand, cmCommand);
 protected:

+ 1 - 1
Source/cmLoadCommandCommand.cxx

@@ -69,7 +69,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return info.Name; }
+  virtual std::string GetName() const { return info.Name; }
 
   static const char* LastName;
   static void TrapsForSignals(int sig)

+ 1 - 1
Source/cmLoadCommandCommand.h

@@ -20,7 +20,7 @@ public:
   virtual cmCommand* Clone() { return new cmLoadCommandCommand; }
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
-  virtual const char* GetName() const {return "load_command";}
+  virtual std::string GetName() const {return "load_command";}
   virtual bool IsDiscouraged() const { return true; }
   cmTypeMacro(cmLoadCommandCommand, cmCommand);
 };

+ 1 - 1
Source/cmMacroCommand.cxx

@@ -65,7 +65,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return this->Args[0].c_str(); }
+  virtual std::string GetName() const { return this->Args[0]; }
 
   cmTypeMacro(cmMacroHelperCommand, cmCommand);
 

+ 1 - 1
Source/cmMacroCommand.h

@@ -57,7 +57,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "macro";}
+  virtual std::string GetName() const { return "macro";}
 
   cmTypeMacro(cmMacroCommand, cmCommand);
 };

+ 1 - 1
Source/cmMakeDirectoryCommand.h

@@ -44,7 +44,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "make_directory";}
+  virtual std::string GetName() const { return "make_directory";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmMarkAsAdvancedCommand.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "mark_as_advanced";}
+  virtual std::string GetName() const {return "mark_as_advanced";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmMathCommand.h

@@ -41,7 +41,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "math";}
+  virtual std::string GetName() const { return "math";}
 
   cmTypeMacro(cmMathCommand, cmCommand);
 protected:

+ 1 - 1
Source/cmMessageCommand.h

@@ -39,7 +39,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "message";}
+  virtual std::string GetName() const { return "message";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmOptionCommand.h

@@ -40,7 +40,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "option";}
+  virtual std::string GetName() const {return "option";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmOutputRequiredFilesCommand.h

@@ -22,7 +22,7 @@ public:
   virtual cmCommand* Clone() { return new cmOutputRequiredFilesCommand; }
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
-  virtual const char* GetName() const { return "output_required_files";}
+  virtual std::string GetName() const { return "output_required_files";}
   virtual bool IsDiscouraged() const { return true; }
 
   void ListDependencies(cmDependInformation const *info,

+ 1 - 1
Source/cmProjectCommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "project";}
+  virtual std::string GetName() const {return "project";}
 
   cmTypeMacro(cmProjectCommand, cmCommand);
 };

+ 1 - 1
Source/cmQTWrapCPPCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "qt_wrap_cpp";}
+  virtual std::string GetName() const { return "qt_wrap_cpp";}
 };
 
 

+ 1 - 1
Source/cmQTWrapUICommand.h

@@ -43,7 +43,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "qt_wrap_ui";}
+  virtual std::string GetName() const { return "qt_wrap_ui";}
 };
 
 

+ 1 - 1
Source/cmRemoveCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "remove";}
+  virtual std::string GetName() const {return "remove";}
 
   /** This command is kept for compatibility with older CMake versions. */
   virtual bool IsDiscouraged() const

+ 1 - 1
Source/cmRemoveDefinitionsCommand.h

@@ -42,7 +42,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "remove_definitions";}
+  virtual std::string GetName() const {return "remove_definitions";}
 
   cmTypeMacro(cmRemoveDefinitionsCommand, cmCommand);
 };

+ 1 - 1
Source/cmReturnCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "return";}
+  virtual std::string GetName() const {return "return";}
 
   cmTypeMacro(cmReturnCommand, cmCommand);
 };

+ 1 - 1
Source/cmSeparateArgumentsCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "separate_arguments";}
+  virtual std::string GetName() const {return "separate_arguments";}
 
   cmTypeMacro(cmSeparateArgumentsCommand, cmCommand);
 };

+ 1 - 1
Source/cmSetCommand.h

@@ -45,7 +45,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const {return "set";}
+  virtual std::string GetName() const {return "set";}
 
   cmTypeMacro(cmSetCommand, cmCommand);
 };

+ 1 - 1
Source/cmSetDirectoryPropertiesCommand.h

@@ -37,7 +37,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "set_directory_properties";}
+  virtual std::string GetName() const { return "set_directory_properties";}
 
   /**
    * Static entry point for use by other commands

+ 1 - 1
Source/cmSetPropertyCommand.h

@@ -34,7 +34,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "set_property";}
+  virtual std::string GetName() const { return "set_property";}
 
   /**
    * This determines if the command is invoked when in script mode.

+ 1 - 1
Source/cmSetSourceFilesPropertiesCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "set_source_files_properties";}
+  virtual std::string GetName() const { return "set_source_files_properties";}
 
   cmTypeMacro(cmSetSourceFilesPropertiesCommand, cmCommand);
 

+ 1 - 1
Source/cmSetTargetPropertiesCommand.h

@@ -32,7 +32,7 @@ public:
   /**
    * The name of the command as specified in CMakeList.txt.
    */
-  virtual const char* GetName() const { return "set_target_properties";}
+  virtual std::string GetName() const { return "set_target_properties";}
 
   /**
    *  Used by this command and cmSetPropertiesCommand

Some files were not shown because too many files changed in this diff