Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
eac8caa4
Commit
eac8caa4
authored
Jan 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagPrint: add "noexcept"
parent
61eb2aa3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
TagPrint.cxx
src/TagPrint.cxx
+4
-4
TagPrint.hxx
src/TagPrint.hxx
+4
-4
No files found.
src/TagPrint.cxx
View file @
eac8caa4
...
...
@@ -24,7 +24,7 @@
#include "client/Response.hxx"
void
tag_print_types
(
Response
&
r
)
tag_print_types
(
Response
&
r
)
noexcept
{
for
(
unsigned
i
=
0
;
i
<
TAG_NUM_OF_ITEM_TYPES
;
i
++
)
if
(
IsTagEnabled
(
i
))
...
...
@@ -32,13 +32,13 @@ tag_print_types(Response &r)
}
void
tag_print
(
Response
&
r
,
TagType
type
,
const
char
*
value
)
tag_print
(
Response
&
r
,
TagType
type
,
const
char
*
value
)
noexcept
{
r
.
Format
(
"%s: %s
\n
"
,
tag_item_names
[
type
],
value
);
}
void
tag_print_values
(
Response
&
r
,
const
Tag
&
tag
)
tag_print_values
(
Response
&
r
,
const
Tag
&
tag
)
noexcept
{
const
auto
tag_mask
=
r
.
GetTagMask
();
for
(
const
auto
&
i
:
tag
)
...
...
@@ -47,7 +47,7 @@ tag_print_values(Response &r, const Tag &tag)
}
void
tag_print
(
Response
&
r
,
const
Tag
&
tag
)
tag_print
(
Response
&
r
,
const
Tag
&
tag
)
noexcept
{
if
(
!
tag
.
duration
.
IsNegative
())
r
.
Format
(
"Time: %i
\n
"
...
...
src/TagPrint.hxx
View file @
eac8caa4
...
...
@@ -28,15 +28,15 @@ struct Tag;
class
Response
;
void
tag_print_types
(
Response
&
response
);
tag_print_types
(
Response
&
response
)
noexcept
;
void
tag_print
(
Response
&
response
,
TagType
type
,
const
char
*
value
);
tag_print
(
Response
&
response
,
TagType
type
,
const
char
*
value
)
noexcept
;
void
tag_print_values
(
Response
&
response
,
const
Tag
&
tag
);
tag_print_values
(
Response
&
response
,
const
Tag
&
tag
)
noexcept
;
void
tag_print
(
Response
&
response
,
const
Tag
&
tag
);
tag_print
(
Response
&
response
,
const
Tag
&
tag
)
noexcept
;
#endif
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