summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-25 13:34:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-05-25 13:34:29 (GMT)
commit6052e4b3bfe62a8d29ca679affb101c7aec0d219 (patch)
treedb207f809276b9c5691c889b9e658befc93e6d4c /Source/CPack/cpack.cxx
parent9ebc2092885fa32eaa47aade965fcec2cfa308d0 (diff)
parent5784747d1b0404a0c1cb0223b15b823476023fba (diff)
downloadCMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.zip
CMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.tar.gz
CMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.tar.bz2
Merge topic 'improve-character-find-and-replace'
5784747d Improve string find: prefer character overloads. 5cec953e Use std::replace for replacing chars in strings. 2a1a2033 cmExtraEclipseCDT4Generator: use std::replace. 34bc6e1f cmCTestScriptHandler: don't call find repeatedly.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index e54be2c..10f60b2 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -68,7 +68,7 @@ int cpackDefinitionArgument(const char* argument, const char* cValue,
(void)argument;
cpackDefinitions* def = static_cast<cpackDefinitions*>(call_data);
std::string value = cValue;
- size_t pos = value.find_first_of("=");
+ size_t pos = value.find_first_of('=');
if (pos == std::string::npos) {
cmCPack_Log(def->Log, cmCPackLog::LOG_ERROR,
"Please specify CPack definitions as: KEY=VALUE" << std::endl);