From 737c49a357e7a97b213857fd899081d42f38c143 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 25 Feb 2012 10:49:24 +0400 Subject: Add 'const' qualifier to some cmCommand members Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation. --- Source/cmUnsetCommand.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/cmUnsetCommand.h') diff --git a/Source/cmUnsetCommand.h b/Source/cmUnsetCommand.h index 28f8cf48b4..9cf95d98d5 100644 --- a/Source/cmUnsetCommand.h +++ b/Source/cmUnsetCommand.h @@ -40,17 +40,17 @@ public: /** * This determines if the command is invoked when in script mode. */ - virtual bool IsScriptable() { return true; } + virtual bool IsScriptable() const { return true; } /** * The name of the command as specified in CMakeList.txt. */ - virtual const char* GetName() {return "unset";} + virtual const char* GetName() const {return "unset";} /** * Succinct documentation. */ - virtual const char* GetTerseDocumentation() + virtual const char* GetTerseDocumentation() const { return "Unset a variable, cache variable, or environment variable."; } @@ -58,7 +58,7 @@ public: /** * More documentation. */ - virtual const char* GetFullDocumentation() + virtual const char* GetFullDocumentation() const { return " unset( [CACHE])\n" -- cgit v1.2.1