Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
5a8474bf
Commit
5a8474bf
authored
Mar 06, 2012
by
Jelte Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[1093] use vector.empty() instead of size() > 0
parent
ac03fb06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/log/compiler/message.cc
src/lib/log/compiler/message.cc
+1
-1
No files found.
src/lib/log/compiler/message.cc
View file @
5a8474bf
...
...
@@ -474,7 +474,7 @@ errorDuplicates(MessageReader& reader) {
// order and remove those which occur more than once (which mean that they
// occur more than twice in the input file).
MessageReader
::
MessageIDCollection
duplicates
=
reader
.
getNotAdded
();
if
(
duplicates
.
size
()
>
0
)
{
if
(
!
duplicates
.
empty
()
)
{
cout
<<
"Error: the following duplicate IDs were found:
\n
"
;
sort
(
duplicates
.
begin
(),
duplicates
.
end
());
...
...
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