diff options
author | David Cole <david.cole@kitware.com> | 2012-03-02 16:50:07 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-02 16:50:07 (GMT) |
commit | e4382180fcbc4d325cae0ba1046d02075616f173 (patch) | |
tree | 4f96254f9bd19b33cbf4776ac89f75d9468a8260 /Source/cmFindPackageCommand.cxx | |
parent | b9beb660ea4656021a4ef57e5cbfa4f988108199 (diff) | |
parent | 737c49a357e7a97b213857fd899081d42f38c143 (diff) | |
download | CMake-e4382180fcbc4d325cae0ba1046d02075616f173.zip CMake-e4382180fcbc4d325cae0ba1046d02075616f173.tar.gz CMake-e4382180fcbc4d325cae0ba1046d02075616f173.tar.bz2 |
Merge topic 'add-const-qualifiers'
737c49a Add 'const' qualifier to some cmCommand members
261491f cmPropertyDefinition::IsChained is const
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index d632570..9177162 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -354,11 +354,11 @@ void cmFindPackageCommand::GenerateDocumentation() } //---------------------------------------------------------------------------- -const char* cmFindPackageCommand::GetFullDocumentation() +const char* cmFindPackageCommand::GetFullDocumentation() const { if(this->CommandDocumentation.empty()) { - this->GenerateDocumentation(); + const_cast<cmFindPackageCommand *>(this)->GenerateDocumentation(); } return this->CommandDocumentation.c_str(); } |