summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-10-13 16:47:50 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-10-14 13:27:43 (GMT)
commit7db671a14374fdbfb8ae87ab9618bca111f4e8a5 (patch)
tree3535114bfc869fd7b13e4969ffc3fbcd186c2d3b /Source/cmcldeps.cxx
parenta8513d8a80dbf654915a3176673e7f7ef544a957 (diff)
downloadCMake-7db671a14374fdbfb8ae87ab9618bca111f4e8a5.zip
CMake-7db671a14374fdbfb8ae87ab9618bca111f4e8a5.tar.gz
CMake-7db671a14374fdbfb8ae87ab9618bca111f4e8a5.tar.bz2
cmcldeps: search for single-byte strings as characters
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r--Source/cmcldeps.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index 167d60a..aed67b9 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -258,7 +258,7 @@ int main()
// needed to suppress filename output of msvc tools
std::string srcfilename;
{
- std::string::size_type pos = srcfile.rfind("\\");
+ std::string::size_type pos = srcfile.rfind('\\');
if (pos == std::string::npos) {
srcfilename = srcfile;
} else {
@@ -280,7 +280,7 @@ int main()
clrest = replace(clrest, objfile, objfile + ".dep.obj ");
// rc: src\x\x.rc -> cl: /Tc src\x\x.rc
- if (srcfile.find(" ") != std::string::npos)
+ if (srcfile.find(' ') != std::string::npos)
srcfile = "\"" + srcfile + "\"";
clrest = replace(clrest, srcfile, "/Tc " + srcfile);