diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-20 22:28:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-20 22:28:23 (GMT) |
commit | 61f602d66876414aadee14cf4be68f07ec9eaad3 (patch) | |
tree | fce6800154341e35b7bb1f6efaa9103897ee89f5 /Source/cmSystemTools.cxx | |
parent | 30d4262dadad5dc1ac6bf6d138a47b7e27de659c (diff) | |
download | CMake-61f602d66876414aadee14cf4be68f07ec9eaad3.zip CMake-61f602d66876414aadee14cf4be68f07ec9eaad3.tar.gz CMake-61f602d66876414aadee14cf4be68f07ec9eaad3.tar.bz2 |
BUG: If the line ends without new-line character, Split should still return something
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 267dbd3..a6872f1 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1106,16 +1106,13 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext) bool cmSystemTools::Split(const char* s, std::vector<cmStdString>& l) { std::vector<std::string> temp; - if(!Superclass::Split(s, temp)) - { - return false; - } + bool res = Superclass::Split(s, temp); for(std::vector<std::string>::const_iterator i = temp.begin(); i != temp.end(); ++i) { l.push_back(*i); } - return true; + return res; } std::string cmSystemTools::ConvertToOutputPath(const char* path) |