diff options
author | Brad King <brad.king@kitware.com> | 2012-03-13 13:17:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-13 15:23:14 (GMT) |
commit | ac800f49d07337df79565c77fe0847222ade520b (patch) | |
tree | 709081452363f5cc506fa1fb4175417707593ff4 /Source/cmLocalNinjaGenerator.cxx | |
parent | 9a0d5a828a8f47b4388dbeab8bde9921ee3b7146 (diff) | |
download | CMake-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.cxx | 6 |
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); |