Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
legacy
bedtools2
Commits
09eb206e
Commit
09eb206e
authored
May 15, 2012
by
Aaron
Browse files
prefer empty() over size()
parent
601760a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/groupBy/groupBy.cpp
View file @
09eb206e
...
...
@@ -380,7 +380,7 @@ void ReportSummary(const vector<string> &group, const vector<vector<string> > &d
vector
<
string
>
result
;
for
(
size_t
i
=
0
;
i
<
data
.
size
();
i
++
)
{
if
(
data
[
i
].
size
()
==
0
)
if
(
data
[
i
].
empty
()
)
continue
;
string
op
=
ops
[
i
];
...
...
@@ -445,7 +445,7 @@ void ReportSummary(const vector<string> &group, const vector<vector<string> > &d
result
.
push_back
(
buffer
.
str
());
}
}
if
(
result
.
size
()
>
0
)
{
if
(
!
result
.
empty
()
)
{
for_each
(
group
.
begin
(),
group
.
end
(),
TabPrintPost
);
cout
<<
*
result
.
begin
();
for_each
(
++
result
.
begin
(),
result
.
end
(),
TabPrintPre
);
...
...
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