mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-30 00:15:47 -04:00
Minor fixes including removing <> from make_pair usage and using explicit conversions where required by the explicit constructor flags
Now builds/runs using c++11
This commit is contained in:
@@ -108,20 +108,20 @@ namespace PlanetObjectNamespace
|
||||
|
||||
if(index == std::string::npos)
|
||||
{
|
||||
parsedVector.push_back(std::make_pair<std::string, std::string::size_type>(eventString, 0));
|
||||
parsedVector.push_back(std::make_pair(eventString, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
while(index != std::string::npos)
|
||||
{
|
||||
std::string subString = eventString.substr(offset, (index - offset));
|
||||
parsedVector.push_back(std::make_pair<std::string, std::string::size_type>(subString, index));
|
||||
parsedVector.push_back(std::make_pair(subString, index));
|
||||
offset = index + 1;
|
||||
index = eventString.find(delimiter, offset);
|
||||
}
|
||||
|
||||
std::string subString = eventString.substr(offset, eventString.size());
|
||||
parsedVector.push_back(std::make_pair<std::string, std::string::size_type>(subString, index));
|
||||
parsedVector.push_back(std::make_pair(subString, index));
|
||||
}
|
||||
|
||||
const char * makeCopyOfString(const char * rhs)
|
||||
|
||||
Reference in New Issue
Block a user