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
07e52450
Commit
07e52450
authored
Sep 21, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/Plugin: add `noexcept`
parent
2c057520
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
8 deletions
+12
-8
InputPlugin.cxx
src/input/InputPlugin.cxx
+2
-1
InputPlugin.hxx
src/input/InputPlugin.hxx
+4
-3
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+2
-1
FfmpegInputPlugin.cxx
src/input/plugins/FfmpegInputPlugin.cxx
+2
-1
QobuzInputPlugin.cxx
src/input/plugins/QobuzInputPlugin.cxx
+1
-1
TidalInputPlugin.cxx
src/input/plugins/TidalInputPlugin.cxx
+1
-1
No files found.
src/input/InputPlugin.cxx
View file @
07e52450
...
...
@@ -63,7 +63,8 @@ constexpr static const char *whitelist[] = {
};
bool
protocol_is_whitelisted
(
const
char
*
proto
)
{
protocol_is_whitelisted
(
const
char
*
proto
)
noexcept
{
auto
begin
=
std
::
begin
(
whitelist
);
auto
end
=
std
::
end
(
whitelist
);
return
std
::
binary_search
(
begin
,
end
,
proto
,
[](
const
char
*
a
,
const
char
*
b
)
{
...
...
src/input/InputPlugin.hxx
View file @
07e52450
...
...
@@ -56,7 +56,7 @@ struct InputPlugin {
* Global deinitialization. Called once before MPD shuts
* down (only if init() has returned true).
*/
void
(
*
finish
)();
void
(
*
finish
)()
noexcept
;
/**
* Attempt to open the given URI. Returns nullptr if the
...
...
@@ -69,7 +69,7 @@ struct InputPlugin {
/**
* return a set of supported protocols
*/
std
::
set
<
std
::
string
>
(
*
protocols
)();
std
::
set
<
std
::
string
>
(
*
protocols
)()
noexcept
;
/**
* Prepare a #RemoteTagScanner. The operation must be started
...
...
@@ -103,7 +103,8 @@ struct InputPlugin {
}
};
gcc_pure
bool
protocol_is_whitelisted
(
const
char
*
proto
);
protocol_is_whitelisted
(
const
char
*
proto
)
noexcept
;
#endif
src/input/plugins/CurlInputPlugin.cxx
View file @
07e52450
...
...
@@ -516,7 +516,8 @@ input_curl_open(const char *url, Mutex &mutex)
}
static
std
::
set
<
std
::
string
>
input_curl_protocols
()
{
input_curl_protocols
()
noexcept
{
std
::
set
<
std
::
string
>
protocols
;
auto
version_info
=
curl_version_info
(
CURLVERSION_FIRST
);
for
(
auto
proto_ptr
=
version_info
->
protocols
;
*
proto_ptr
!=
nullptr
;
proto_ptr
++
)
{
...
...
src/input/plugins/FfmpegInputPlugin.cxx
View file @
07e52450
...
...
@@ -73,7 +73,8 @@ input_ffmpeg_init(EventLoop &, const ConfigBlock &)
}
static
std
::
set
<
std
::
string
>
input_ffmpeg_protocols
()
{
input_ffmpeg_protocols
()
noexcept
{
void
*
opaque
=
nullptr
;
const
char
*
protocol
;
std
::
set
<
std
::
string
>
protocols
;
...
...
src/input/plugins/QobuzInputPlugin.cxx
View file @
07e52450
...
...
@@ -158,7 +158,7 @@ InitQobuzInput(EventLoop &event_loop, const ConfigBlock &block)
}
static
void
FinishQobuzInput
()
FinishQobuzInput
()
noexcept
{
delete
qobuz_client
;
}
...
...
src/input/plugins/TidalInputPlugin.cxx
View file @
07e52450
...
...
@@ -189,7 +189,7 @@ InitTidalInput(EventLoop &event_loop, const ConfigBlock &block)
}
static
void
FinishTidalInput
()
FinishTidalInput
()
noexcept
{
delete
tidal_session
;
}
...
...
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