summaryrefslogtreecommitdiff
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-02 11:50:07 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-02 11:50:07 -0500
commite4382180fcbc4d325cae0ba1046d02075616f173 (patch)
tree4f96254f9bd19b33cbf4776ac89f75d9468a8260 /Source/cmFindPackageCommand.cxx
parentb9beb660ea4656021a4ef57e5cbfa4f988108199 (diff)
parent737c49a357e7a97b213857fd899081d42f38c143 (diff)
downloadcmake-e4382180fcbc4d325cae0ba1046d02075616f173.tar.gz
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 d6325707d2..9177162724 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();
}