Commit f115592d by alokp@chromium.org

Used std::ostringstream instead of std::stringstream wherever applicable.

git-svn-id: https://angleproject.googlecode.com/svn/trunk@1176 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 5b6a68e0
...@@ -200,13 +200,13 @@ bool MacroExpander::expandMacro(const Macro& macro, ...@@ -200,13 +200,13 @@ bool MacroExpander::expandMacro(const Macro& macro,
Token& repl = replacements->front(); Token& repl = replacements->front();
if (macro.name == kLine) if (macro.name == kLine)
{ {
std::stringstream stream; std::ostringstream stream;
stream << identifier.location.line; stream << identifier.location.line;
repl.text = stream.str(); repl.text = stream.str();
} }
else if (macro.name == kFile) else if (macro.name == kFile)
{ {
std::stringstream stream; std::ostringstream stream;
stream << identifier.location.file; stream << identifier.location.file;
repl.text = stream.str(); repl.text = stream.str();
} }
......
...@@ -65,7 +65,7 @@ bool Preprocessor::init(int count, ...@@ -65,7 +65,7 @@ bool Preprocessor::init(int count,
void Preprocessor::predefineMacro(const char* name, int value) void Preprocessor::predefineMacro(const char* name, int value)
{ {
std::stringstream stream; std::ostringstream stream;
stream << value; stream << value;
Token token; Token token;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment