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
1b62adc8
Commit
1b62adc8
authored
Apr 24, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instance: add `noexcept`
parent
0641ce79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Instance.hxx
src/Instance.hxx
+4
-4
Main.cxx
src/Main.cxx
+1
-1
No files found.
src/Instance.hxx
View file @
1b62adc8
...
...
@@ -131,11 +131,11 @@ struct Instance final
/**
* Wrapper for EventLoop::Break(). Call to initiate shutdown.
*/
void
Break
()
{
void
Break
()
noexcept
{
event_loop
.
Break
();
}
void
EmitIdle
(
unsigned
mask
)
{
void
EmitIdle
(
unsigned
mask
)
noexcept
{
idle_monitor
.
OrMask
(
mask
);
}
...
...
@@ -154,7 +154,7 @@ struct Instance final
* if this MPD configuration has no database (no
* music_directory was configured).
*/
Database
*
GetDatabase
()
{
Database
*
GetDatabase
()
noexcept
{
return
database
.
get
();
}
...
...
@@ -194,7 +194,7 @@ private:
#endif
/* callback for #idle_monitor */
void
OnIdle
(
unsigned
mask
);
void
OnIdle
(
unsigned
mask
)
noexcept
;
};
#endif
src/Main.cxx
View file @
1b62adc8
...
...
@@ -360,7 +360,7 @@ Instance::BeginShutdownPartitions() noexcept
}
void
Instance
::
OnIdle
(
unsigned
flags
)
Instance
::
OnIdle
(
unsigned
flags
)
noexcept
{
/* send "idle" notifications to all subscribed
clients */
...
...
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