summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-13 13:17:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-13 15:23:14 (GMT)
commitac800f49d07337df79565c77fe0847222ade520b (patch)
tree709081452363f5cc506fa1fb4175417707593ff4 /Source/cmGlobalNinjaGenerator.h
parent9a0d5a828a8f47b4388dbeab8bde9921ee3b7146 (diff)
downloadCMake-ac800f49d07337df79565c77fe0847222ade520b.zip
CMake-ac800f49d07337df79565c77fe0847222ade520b.tar.gz
CMake-ac800f49d07337df79565c77fe0847222ade520b.tar.bz2
Ninja: Constify use of cmCustomCommand
The generator never needs to modify custom command instances.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index e77252f..39df826 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -270,7 +270,7 @@ private:
/// Called when we have seen the given custom command. Returns true
/// if we has seen it before.
- bool SeenCustomCommand(cmCustomCommand *cc) {
+ bool SeenCustomCommand(cmCustomCommand const *cc) {
return !this->CustomCommands.insert(cc).second;
}
@@ -315,7 +315,7 @@ private:
cmNinjaDeps AllDependencies;
/// The set of custom commands we have seen.
- std::set<cmCustomCommand *> CustomCommands;
+ std::set<cmCustomCommand const*> CustomCommands;
/// The set of custom command outputs we have seen.
std::set<std::string> CustomCommandOutputs;