summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-01 18:07:35 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-01 18:07:35 (GMT)
commit594a9fcf6fa1ad9bcfe91abe7d94df2e92f3d11b (patch)
tree1e39e0513a6af72bf692be1a467eaa0f673a4cff /Source/kwsys/Directory.cxx
parent6a42b9609f1d0a047394a8d63fb8ddb803abce34 (diff)
parent74ef363dd7e46fc883b9822f3516002d9345293e (diff)
downloadCMake-594a9fcf6fa1ad9bcfe91abe7d94df2e92f3d11b.zip
CMake-594a9fcf6fa1ad9bcfe91abe7d94df2e92f3d11b.tar.gz
CMake-594a9fcf6fa1ad9bcfe91abe7d94df2e92f3d11b.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-06-01 (8243fefa)
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r--Source/kwsys/Directory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index ca1cb18..5141d45 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -109,7 +109,7 @@ bool Directory::Load(const std::string& name)
// Make sure the slashes in the wildcard suffix are consistent with the
// rest of the path
buf = new char[n + 2 + 1];
- if (name.find('\\') != name.npos) {
+ if (name.find('\\') != std::string::npos) {
sprintf(buf, "%s\\*", name.c_str());
} else {
sprintf(buf, "%s/*", name.c_str());