summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-02 16:50:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-02 16:50:07 (GMT)
commite4382180fcbc4d325cae0ba1046d02075616f173 (patch)
tree4f96254f9bd19b33cbf4776ac89f75d9468a8260 /Source/cmFindPackageCommand.cxx
parentb9beb660ea4656021a4ef57e5cbfa4f988108199 (diff)
parent737c49a357e7a97b213857fd899081d42f38c143 (diff)
downloadCMake-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.cxx4
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();
}