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
c0e9246a
Commit
c0e9246a
authored
Feb 05, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/List: add `noexcept`
parent
096c23f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ArchiveList.cxx
src/archive/ArchiveList.cxx
+4
-3
ArchiveList.hxx
src/archive/ArchiveList.hxx
+3
-3
No files found.
src/archive/ArchiveList.cxx
View file @
c0e9246a
...
@@ -49,7 +49,7 @@ static bool archive_plugins_enabled[ARRAY_SIZE(archive_plugins) - 1];
...
@@ -49,7 +49,7 @@ static bool archive_plugins_enabled[ARRAY_SIZE(archive_plugins) - 1];
if (archive_plugins_enabled[archive_plugin_iterator - archive_plugins])
if (archive_plugins_enabled[archive_plugin_iterator - archive_plugins])
const
ArchivePlugin
*
const
ArchivePlugin
*
archive_plugin_from_suffix
(
const
char
*
suffix
)
archive_plugin_from_suffix
(
const
char
*
suffix
)
noexcept
{
{
if
(
suffix
==
nullptr
)
if
(
suffix
==
nullptr
)
return
nullptr
;
return
nullptr
;
...
@@ -63,7 +63,7 @@ archive_plugin_from_suffix(const char *suffix)
...
@@ -63,7 +63,7 @@ archive_plugin_from_suffix(const char *suffix)
}
}
const
ArchivePlugin
*
const
ArchivePlugin
*
archive_plugin_from_name
(
const
char
*
name
)
archive_plugin_from_name
(
const
char
*
name
)
noexcept
{
{
archive_plugins_for_each_enabled
(
plugin
)
archive_plugins_for_each_enabled
(
plugin
)
if
(
strcmp
(
plugin
->
name
,
name
)
==
0
)
if
(
strcmp
(
plugin
->
name
,
name
)
==
0
)
...
@@ -81,7 +81,8 @@ void archive_plugin_init_all(void)
...
@@ -81,7 +81,8 @@ void archive_plugin_init_all(void)
}
}
}
}
void
archive_plugin_deinit_all
(
void
)
void
archive_plugin_deinit_all
()
noexcept
{
{
archive_plugins_for_each_enabled
(
plugin
)
archive_plugins_for_each_enabled
(
plugin
)
if
(
plugin
->
finish
!=
nullptr
)
if
(
plugin
->
finish
!=
nullptr
)
...
...
src/archive/ArchiveList.hxx
View file @
c0e9246a
...
@@ -33,10 +33,10 @@ extern const ArchivePlugin *const archive_plugins[];
...
@@ -33,10 +33,10 @@ extern const ArchivePlugin *const archive_plugins[];
/* interface for using plugins */
/* interface for using plugins */
const
ArchivePlugin
*
const
ArchivePlugin
*
archive_plugin_from_suffix
(
const
char
*
suffix
);
archive_plugin_from_suffix
(
const
char
*
suffix
)
noexcept
;
const
ArchivePlugin
*
const
ArchivePlugin
*
archive_plugin_from_name
(
const
char
*
name
);
archive_plugin_from_name
(
const
char
*
name
)
noexcept
;
/* this is where we "load" all the "plugins" ;-) */
/* this is where we "load" all the "plugins" ;-) */
void
void
...
@@ -44,6 +44,6 @@ archive_plugin_init_all();
...
@@ -44,6 +44,6 @@ archive_plugin_init_all();
/* this is where we "unload" all the "plugins" */
/* this is where we "unload" all the "plugins" */
void
void
archive_plugin_deinit_all
();
archive_plugin_deinit_all
()
noexcept
;
#endif
#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