From Stephan Huber, fix for OSX build.

This commit is contained in:
Robert Osfield 2002-11-04 15:33:08 +00:00
parent e999f5ad0f
commit dc3aed2332

View File

@ -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;
} }