summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-19 10:05:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-19 19:40:31 (GMT)
commit50d152035da514005eaaa1d3e39e407676efd73c (patch)
treef05b8412ffb6f673918b9d21f3fe3d591f16af68 /Source/cmVisualStudio10TargetGenerator.cxx
parent0f876439e941c18f7fc264fbf02f5df9bc531f90 (diff)
downloadCMake-50d152035da514005eaaa1d3e39e407676efd73c.zip
CMake-50d152035da514005eaaa1d3e39e407676efd73c.tar.gz
CMake-50d152035da514005eaaa1d3e39e407676efd73c.tar.bz2
cmTarget: Make custom command accessors API const.
Add specific mutators instead of providing non-const refs.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index ace1eef..635d8cb 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1794,7 +1794,7 @@ cmVisualStudio10TargetGenerator::WriteEvents(std::string const& configName)
void cmVisualStudio10TargetGenerator::WriteEvent(
const char* name,
- std::vector<cmCustomCommand> & commands,
+ std::vector<cmCustomCommand> const& commands,
std::string const& configName)
{
if(commands.size() == 0)
@@ -1807,10 +1807,10 @@ void cmVisualStudio10TargetGenerator::WriteEvent(
std::string script;
const char* pre = "";
std::string comment;
- for(std::vector<cmCustomCommand>::iterator i = commands.begin();
+ for(std::vector<cmCustomCommand>::const_iterator i = commands.begin();
i != commands.end(); ++i)
{
- cmCustomCommand& command = *i;
+ const cmCustomCommand& command = *i;
comment += pre;
comment += lg->ConstructComment(command);
script += pre;