mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
Add 'const' qualifier to some cmCommand members
Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
This commit is contained in:
committed by
Brad King
parent
261491fe17
commit
737c49a357
@@ -47,12 +47,12 @@ public:
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
virtual const char* GetName() { return "ctest_run_script";}
|
||||
virtual const char* GetName() const { return "ctest_run_script";}
|
||||
|
||||
/**
|
||||
* Succinct documentation.
|
||||
*/
|
||||
virtual const char* GetTerseDocumentation()
|
||||
virtual const char* GetTerseDocumentation() const
|
||||
{
|
||||
return "runs a ctest -S script";
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
/**
|
||||
* More documentation.
|
||||
*/
|
||||
virtual const char* GetFullDocumentation()
|
||||
virtual const char* GetFullDocumentation() const
|
||||
{
|
||||
return
|
||||
" ctest_run_script([NEW_PROCESS] script_file_name script_file_name1 \n"
|
||||
|
||||
Reference in New Issue
Block a user