Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
fca97a63
Commit
fca97a63
authored
Apr 13, 2012
by
Davis King
Browse files
Changed code to avoid some warnings from clang.
parent
44902202
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
tools/htmlify/to_xml.cpp
tools/htmlify/to_xml.cpp
+2
-3
No files found.
tools/htmlify/to_xml.cpp
View file @
fca97a63
...
...
@@ -987,7 +987,7 @@ string pretty_print_declaration (
if
(
decl
[
i
].
first
==
tok_type
::
OTHER
&&
decl
[
i
].
second
==
"<"
&&
(
decl
[
i
-
1
].
second
!=
"operator"
&&
(
i
>
1
&&
decl
[
i
-
2
].
second
!=
"operator"
||
decl
[
i
-
1
].
second
!=
"<"
)
))
(
decl
[
i
-
1
].
second
!=
"operator"
&&
(
(
i
>
1
&&
decl
[
i
-
2
].
second
!=
"operator"
)
||
decl
[
i
-
1
].
second
!=
"<"
)
))
++
angle_count
;
if
(
decl
[
i
-
1
].
first
==
tok_type
::
KEYWORD
&&
decl
[
i
-
1
].
second
==
"template"
&&
...
...
@@ -999,7 +999,7 @@ string pretty_print_declaration (
else
if
(
decl
[
i
].
first
==
tok_type
::
OTHER
&&
decl
[
i
].
second
==
">"
)
{
// don't count angle brackets when they are part of an operator
if
(
decl
[
i
-
1
].
second
!=
"operator"
&&
(
i
>
1
&&
decl
[
i
-
2
].
second
!=
"operator"
||
decl
[
i
-
1
].
second
!=
">"
))
if
(
decl
[
i
-
1
].
second
!=
"operator"
&&
(
(
i
>
1
&&
decl
[
i
-
2
].
second
!=
"operator"
)
||
decl
[
i
-
1
].
second
!=
">"
))
--
angle_count
;
if
(
angle_count
==
0
&&
in_template
)
...
...
@@ -1202,7 +1202,6 @@ string format_comment (
// now remove the leading white space
string
temp2
;
bool
seen_newline
=
true
;
unsigned
long
counter
=
0
;
for
(
unsigned
long
i
=
0
;
i
<
temp
.
size
();
++
i
)
{
...
...
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