summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 8859172..3856091 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -145,7 +145,7 @@ struct DoAccept<true>
// where the user supplied the file name and Visual Studio
// appended the suffix.
std::string resx = f->GetFullPath();
- std::string hFileName = resx.substr(0, resx.find_last_of(".")) + ".h";
+ std::string hFileName = resx.substr(0, resx.find_last_of('.')) + ".h";
data.ExpectedResxHeaders.insert(hFileName);
data.ResxSources.push_back(f);
}