summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-25 01:24:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:39 (GMT)
commit94fc63e2d5402bc4fa570a92e1f5fe6aba088392 (patch)
tree1d031c69fe143462a9dc581c8ace15862c89e7ee /Source/cmOptionCommand.cxx
parent85fc9f26a703f28b356c93d405446c39bba43846 (diff)
downloadCMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.zip
CMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.tar.gz
CMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.tar.bz2
stringapi: Use strings for cache iterator values
Diffstat (limited to 'Source/cmOptionCommand.cxx')
-rw-r--r--Source/cmOptionCommand.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx
index 776a3a4..dbe2478 100644
--- a/Source/cmOptionCommand.cxx
+++ b/Source/cmOptionCommand.cxx
@@ -55,10 +55,7 @@ bool cmOptionCommand
it.SetProperty("HELPSTRING", args[1].c_str());
return true;
}
- if ( it.GetValue() )
- {
- initialValue = it.GetValue();
- }
+ initialValue = it.GetValue();
}
if(args.size() == 3)
{