Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
206c846e
Commit
206c846e
authored
Dec 07, 2013
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace BasicFormatter.Add with args_.push_back.
parent
2d620be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
format.h
format.h
+2
-6
No files found.
format.h
View file @
206c846e
...
@@ -953,10 +953,6 @@ class BasicFormatter {
...
@@ -953,10 +953,6 @@ class BasicFormatter {
BasicFormatter
(
const
BasicFormatter
&
);
BasicFormatter
(
const
BasicFormatter
&
);
BasicFormatter
&
operator
=
(
const
BasicFormatter
&
);
BasicFormatter
&
operator
=
(
const
BasicFormatter
&
);
void
Add
(
const
Arg
&
arg
)
{
args_
.
push_back
(
&
arg
);
}
void
ReportError
(
const
Char
*
s
,
StringRef
message
)
const
;
void
ReportError
(
const
Char
*
s
,
StringRef
message
)
const
;
unsigned
ParseUInt
(
const
Char
*&
s
)
const
;
unsigned
ParseUInt
(
const
Char
*&
s
)
const
;
...
@@ -1001,7 +997,7 @@ class BasicFormatter {
...
@@ -1001,7 +997,7 @@ class BasicFormatter {
:
writer_
(
&
w
),
format_
(
format
)
{
:
writer_
(
&
w
),
format_
(
format
)
{
args_
.
reserve
(
args
.
size
());
args_
.
reserve
(
args
.
size
());
for
(
const
Arg
&
arg
:
args
)
for
(
const
Arg
&
arg
:
args
)
Add
(
arg
);
args_
.
push_back
(
&
arg
);
}
}
// Perfoms formatting if the format string is non-null. The format string
// Perfoms formatting if the format string is non-null. The format string
...
@@ -1017,7 +1013,7 @@ class BasicFormatter {
...
@@ -1017,7 +1013,7 @@ class BasicFormatter {
// Feeds an argument to a formatter.
// Feeds an argument to a formatter.
BasicFormatter
&
operator
<<
(
const
Arg
&
arg
)
{
BasicFormatter
&
operator
<<
(
const
Arg
&
arg
)
{
arg
.
formatter
=
this
;
arg
.
formatter
=
this
;
Add
(
arg
);
args_
.
push_back
(
&
arg
);
return
*
this
;
return
*
this
;
}
}
...
...
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