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
57de2470
Commit
57de2470
authored
May 31, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queue/Listener: add `noexcept`
parent
8fef4af7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Partition.cxx
src/Partition.cxx
+3
-3
Partition.hxx
src/Partition.hxx
+3
-3
Listener.hxx
src/queue/Listener.hxx
+3
-3
No files found.
src/Partition.cxx
View file @
57de2470
...
...
@@ -115,19 +115,19 @@ Partition::BorderPause()
}
void
Partition
::
OnQueueModified
()
Partition
::
OnQueueModified
()
noexcept
{
EmitIdle
(
IDLE_PLAYLIST
);
}
void
Partition
::
OnQueueOptionsChanged
()
Partition
::
OnQueueOptionsChanged
()
noexcept
{
EmitIdle
(
IDLE_OPTIONS
);
}
void
Partition
::
OnQueueSongStarted
()
Partition
::
OnQueueSongStarted
()
noexcept
{
EmitIdle
(
IDLE_PLAYER
);
}
...
...
src/Partition.hxx
View file @
57de2470
...
...
@@ -247,9 +247,9 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
private
:
/* virtual methods from class QueueListener */
void
OnQueueModified
()
override
;
void
OnQueueOptionsChanged
()
override
;
void
OnQueueSongStarted
()
override
;
void
OnQueueModified
()
noexcept
override
;
void
OnQueueOptionsChanged
()
noexcept
override
;
void
OnQueueSongStarted
()
noexcept
override
;
/* virtual methods from class PlayerListener */
void
OnPlayerSync
()
noexcept
override
;
...
...
src/queue/Listener.hxx
View file @
57de2470
...
...
@@ -25,19 +25,19 @@ public:
/**
* Called after the queue has been modified.
*/
virtual
void
OnQueueModified
()
=
0
;
virtual
void
OnQueueModified
()
noexcept
=
0
;
/**
* Called after a playback options have been changed.
*/
virtual
void
OnQueueOptionsChanged
()
=
0
;
virtual
void
OnQueueOptionsChanged
()
noexcept
=
0
;
/**
* Called after the player has started playing a new song.
* This gets called by playlist::SyncWithPlayer() after it has
* been notified by the player thread.
*/
virtual
void
OnQueueSongStarted
()
=
0
;
virtual
void
OnQueueSongStarted
()
noexcept
=
0
;
};
#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