mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06: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
@@ -41,12 +41,12 @@ public:
|
||||
/**
|
||||
* The name of the command as specified in CMakeList.txt.
|
||||
*/
|
||||
virtual const char* GetName() { return "install_files";}
|
||||
virtual const char* GetName() const { return "install_files";}
|
||||
|
||||
/**
|
||||
* Succinct documentation.
|
||||
*/
|
||||
virtual const char* GetTerseDocumentation()
|
||||
virtual const char* GetTerseDocumentation() const
|
||||
{
|
||||
return "Deprecated. Use the install(FILES ) command instead.";
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
/**
|
||||
* More documentation.
|
||||
*/
|
||||
virtual const char* GetFullDocumentation()
|
||||
virtual const char* GetFullDocumentation() const
|
||||
{
|
||||
return
|
||||
"This command has been superceded by the install command. It "
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
}
|
||||
|
||||
/** This command is kept for compatibility with older CMake versions. */
|
||||
virtual bool IsDiscouraged()
|
||||
virtual bool IsDiscouraged() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user