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
1e9da09f
Commit
1e9da09f
authored
Jan 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagFile: add "noexcept"
parent
5caf351c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
TagFile.cxx
src/TagFile.cxx
+7
-6
TagFile.hxx
src/TagFile.hxx
+3
-2
No files found.
src/TagFile.cxx
View file @
1e9da09f
...
...
@@ -46,16 +46,16 @@ class TagFileScan {
public
:
TagFileScan
(
Path
_path_fs
,
const
char
*
_suffix
,
const
TagHandler
&
_handler
,
void
*
_handler_ctx
)
const
TagHandler
&
_handler
,
void
*
_handler_ctx
)
noexcept
:
path_fs
(
_path_fs
),
suffix
(
_suffix
),
handler
(
_handler
),
handler_ctx
(
_handler_ctx
)
,
is
(
nullptr
)
{}
bool
ScanFile
(
const
DecoderPlugin
&
plugin
)
{
bool
ScanFile
(
const
DecoderPlugin
&
plugin
)
noexcept
{
return
plugin
.
ScanFile
(
path_fs
,
handler
,
handler_ctx
);
}
bool
ScanStream
(
const
DecoderPlugin
&
plugin
)
{
bool
ScanStream
(
const
DecoderPlugin
&
plugin
)
noexcept
{
if
(
plugin
.
scan_stream
==
nullptr
)
return
false
;
...
...
@@ -78,14 +78,15 @@ public:
return
plugin
.
ScanStream
(
*
is
,
handler
,
handler_ctx
);
}
bool
Scan
(
const
DecoderPlugin
&
plugin
)
{
bool
Scan
(
const
DecoderPlugin
&
plugin
)
noexcept
{
return
plugin
.
SupportsSuffix
(
suffix
)
&&
(
ScanFile
(
plugin
)
||
ScanStream
(
plugin
));
}
};
bool
tag_file_scan
(
Path
path_fs
,
const
TagHandler
&
handler
,
void
*
handler_ctx
)
tag_file_scan
(
Path
path_fs
,
const
TagHandler
&
handler
,
void
*
handler_ctx
)
noexcept
{
assert
(
!
path_fs
.
IsNull
());
...
...
@@ -104,7 +105,7 @@ tag_file_scan(Path path_fs, const TagHandler &handler, void *handler_ctx)
}
bool
tag_file_scan
(
Path
path
,
TagBuilder
&
builder
)
tag_file_scan
(
Path
path
,
TagBuilder
&
builder
)
noexcept
{
if
(
!
tag_file_scan
(
path
,
full_tag_handler
,
&
builder
))
return
false
;
...
...
src/TagFile.hxx
View file @
1e9da09f
...
...
@@ -34,7 +34,8 @@ class TagBuilder;
* found)
*/
bool
tag_file_scan
(
Path
path
,
const
TagHandler
&
handler
,
void
*
handler_ctx
);
tag_file_scan
(
Path
path
,
const
TagHandler
&
handler
,
void
*
handler_ctx
)
noexcept
;
/**
* Scan the tags of a song file. Invokes matching decoder plugins,
...
...
@@ -45,6 +46,6 @@ tag_file_scan(Path path, const TagHandler &handler, void *handler_ctx);
* found)
*/
bool
tag_file_scan
(
Path
path
,
TagBuilder
&
builder
);
tag_file_scan
(
Path
path
,
TagBuilder
&
builder
)
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