mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-24 09:09:43 -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
@@ -32,12 +32,12 @@ public:
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
virtual const char* GetName() { return "set_source_files_properties";}
|
||||
virtual const char* GetName() const { return "set_source_files_properties";}
|
||||
|
||||
/**
|
||||
* Succinct documentation.
|
||||
*/
|
||||
virtual const char* GetTerseDocumentation()
|
||||
virtual const char* GetTerseDocumentation() const
|
||||
{
|
||||
return "Source files can have properties that affect how they are built.";
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
/**
|
||||
* Longer documentation.
|
||||
*/
|
||||
virtual const char* GetFullDocumentation()
|
||||
virtual const char* GetFullDocumentation() const
|
||||
{
|
||||
return
|
||||
" set_source_files_properties([file1 [file2 [...]]]\n"
|
||||
|
||||
Reference in New Issue
Block a user