summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Glob.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-25 11:47:51 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-25 11:47:51 (GMT)
commit5f8d1668a2fab9697a4d1caa7cb6f44627082735 (patch)
tree2b2c4ee0dcd652039291e8dc67a5892c2384598d /Source/kwsys/Glob.cxx
parent69e495d10adeb7a9872f1698b60367e57e657fee (diff)
parent9d3b9ec4ab1a2756c54f2af2b418b8818268c964 (diff)
downloadCMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.zip
CMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.tar.gz
CMake-5f8d1668a2fab9697a4d1caa7cb6f44627082735.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2020-03-25 (4380f1ae)
Diffstat (limited to 'Source/kwsys/Glob.cxx')
-rw-r--r--Source/kwsys/Glob.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/kwsys/Glob.cxx b/Source/kwsys/Glob.cxx
index 658b816..8e30f92 100644
--- a/Source/kwsys/Glob.cxx
+++ b/Source/kwsys/Glob.cxx
@@ -385,10 +385,9 @@ bool Glob::FindFiles(const std::string& inexpr, GlobMessages* messages)
}
if (skip > 0) {
- expr = expr.substr(skip);
+ expr.erase(0, skip);
}
- cexpr = "";
for (cc = 0; cc < expr.size(); cc++) {
int ch = expr[cc];
if (ch == '/') {