summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
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/cmLocalNinjaGenerator.cxx
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/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index ea03cbb..78072b5 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -343,8 +343,8 @@ void cmLocalNinjaGenerator::AppendCustomCommandLines(const cmCustomCommand *cc,
}
void
-cmLocalNinjaGenerator::WriteCustomCommandBuildStatement(cmCustomCommand *cc,
- const cmNinjaDeps& orderOnlyDeps)
+cmLocalNinjaGenerator::WriteCustomCommandBuildStatement(
+ cmCustomCommand const *cc, const cmNinjaDeps& orderOnlyDeps)
{
if (this->GetGlobalNinjaGenerator()->SeenCustomCommand(cc))
return;
@@ -383,7 +383,7 @@ cmLocalNinjaGenerator::WriteCustomCommandBuildStatement(cmCustomCommand *cc,
}
}
-void cmLocalNinjaGenerator::AddCustomCommandTarget(cmCustomCommand* cc,
+void cmLocalNinjaGenerator::AddCustomCommandTarget(cmCustomCommand const* cc,
cmTarget* target)
{
this->CustomCommandTargets[cc].insert(target);