diff options
author | Ken Martin <ken.martin@kitware.com> | 2004-01-05 21:29:18 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2004-01-05 21:29:18 (GMT) |
commit | c83f3b3c4cbb828e19760901cbf542e4fced64c5 (patch) | |
tree | 03ab7c594a72bdabff4271e5684d440f8a341261 /Source/cmGlob.cxx | |
parent | 972541c291f44c873de1560c1438029245abd638 (diff) | |
download | CMake-c83f3b3c4cbb828e19760901cbf542e4fced64c5.zip CMake-c83f3b3c4cbb828e19760901cbf542e4fced64c5.tar.gz CMake-c83f3b3c4cbb828e19760901cbf542e4fced64c5.tar.bz2 |
fix for glob command
Diffstat (limited to 'Source/cmGlob.cxx')
-rw-r--r-- | Source/cmGlob.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx index 3eb71ec..20db17e 100644 --- a/Source/cmGlob.cxx +++ b/Source/cmGlob.cxx @@ -263,8 +263,8 @@ bool cmGlob::FindFiles(const std::string& inexpr) std::string::size_type cc; std::string expr = inexpr; - m_Internals->Expressions.empty(); - m_Internals->Files.empty(); + m_Internals->Expressions.clear(); + m_Internals->Files.clear(); if ( !cmsys::SystemTools::FileIsFullPath(expr.c_str()) ) { @@ -273,7 +273,6 @@ bool cmGlob::FindFiles(const std::string& inexpr) } int skip = 0; - int last_slash = 0; for ( cc = 0; cc < expr.size(); cc ++ ) { |