Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
f115592d
Commit
f115592d
authored
Jun 28, 2012
by
alokp@chromium.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MacroExpander.cpp
src/compiler/preprocessor/new/MacroExpander.cpp
+2
-2
Preprocessor.cpp
src/compiler/preprocessor/new/Preprocessor.cpp
+1
-1
No files found.
src/compiler/preprocessor/new/MacroExpander.cpp
View file @
f115592d
...
...
@@ -200,13 +200,13 @@ bool MacroExpander::expandMacro(const Macro& macro,
Token
&
repl
=
replacements
->
front
();
if
(
macro
.
name
==
kLine
)
{
std
::
stringstream
stream
;
std
::
o
stringstream
stream
;
stream
<<
identifier
.
location
.
line
;
repl
.
text
=
stream
.
str
();
}
else
if
(
macro
.
name
==
kFile
)
{
std
::
stringstream
stream
;
std
::
o
stringstream
stream
;
stream
<<
identifier
.
location
.
file
;
repl
.
text
=
stream
.
str
();
}
...
...
src/compiler/preprocessor/new/Preprocessor.cpp
View file @
f115592d
...
...
@@ -65,7 +65,7 @@ bool Preprocessor::init(int count,
void
Preprocessor
::
predefineMacro
(
const
char
*
name
,
int
value
)
{
std
::
stringstream
stream
;
std
::
o
stringstream
stream
;
stream
<<
value
;
Token
token
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment