summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.cxx
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-17 17:06:41 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-17 17:06:41 (GMT)
commite9fcafafe52d01cc3b89190b3787bebd807198f0 (patch)
treefc258cf2774def39138c6fbde9780cef1cad4cb4 /Source/kwsys/Directory.cxx
parentd5631f370b2355b69e5895734d8fe7e4c090e8cf (diff)
downloadCMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.zip
CMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.tar.gz
CMake-e9fcafafe52d01cc3b89190b3787bebd807198f0.tar.bz2
ENH: Use const char where it should have been. At same time fix Bug#2958
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r--Source/kwsys/Directory.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index 79e8111..3f7e6ad 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -80,8 +80,7 @@ const char* Directory::GetPath() const
//----------------------------------------------------------------------------
void Directory::Clear()
{
- //this->Internal->Path.clear();
- this->Internal->Path = "";
+ this->Internal->Path.resize(0);
this->Internal->Files.clear();
}