BUG: If the line ends without new-line character, Split should still return something
This commit is contained in:
parent
30d4262dad
commit
61f602d668
|
@ -1106,16 +1106,13 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext)
|
||||||
bool cmSystemTools::Split(const char* s, std::vector<cmStdString>& l)
|
bool cmSystemTools::Split(const char* s, std::vector<cmStdString>& l)
|
||||||
{
|
{
|
||||||
std::vector<std::string> temp;
|
std::vector<std::string> temp;
|
||||||
if(!Superclass::Split(s, temp))
|
bool res = Superclass::Split(s, temp);
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
for(std::vector<std::string>::const_iterator i = temp.begin();
|
for(std::vector<std::string>::const_iterator i = temp.begin();
|
||||||
i != temp.end(); ++i)
|
i != temp.end(); ++i)
|
||||||
{
|
{
|
||||||
l.push_back(*i);
|
l.push_back(*i);
|
||||||
}
|
}
|
||||||
return true;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmSystemTools::ConvertToOutputPath(const char* path)
|
std::string cmSystemTools::ConvertToOutputPath(const char* path)
|
||||||
|
|
Loading…
Reference in New Issue