Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
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
钟尚武
dlib
Commits
fca97a63
Commit
fca97a63
authored
Apr 13, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed code to avoid some warnings from clang.
parent
44902202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
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