From Stephan Huber, fix for OSX build.
This commit is contained in:
parent
e999f5ad0f
commit
dc3aed2332
@ -78,17 +78,17 @@ void Output::moveOut()
|
|||||||
std::string Output::wrapString(const std::string& str)
|
std::string Output::wrapString(const std::string& str)
|
||||||
{
|
{
|
||||||
std::string newstring;
|
std::string newstring;
|
||||||
newstring.push_back('"');
|
newstring += '"';
|
||||||
for(unsigned int i=0;i<str.size();++i)
|
for(unsigned int i=0;i<str.size();++i)
|
||||||
{
|
{
|
||||||
if (str[i]=='"')
|
if (str[i]=='"')
|
||||||
{
|
{
|
||||||
newstring.push_back('\\');
|
newstring += '\\';
|
||||||
newstring.push_back('"');
|
newstring += '"';
|
||||||
}
|
}
|
||||||
else newstring.push_back(str[i]);
|
else newstring += (str[i]);
|
||||||
}
|
}
|
||||||
newstring.push_back('"');
|
newstring += '"';
|
||||||
return newstring;
|
return newstring;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user