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
7739b396
Commit
7739b396
authored
May 31, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer/Listener: add `noexcept`
parent
11ec7117
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
Partition.cxx
src/Partition.cxx
+1
-1
Partition.hxx
src/Partition.hxx
+1
-1
Listener.hxx
src/mixer/Listener.hxx
+3
-2
NullMixerListener.hxx
test/NullMixerListener.hxx
+2
-2
No files found.
src/Partition.cxx
View file @
7739b396
...
@@ -151,7 +151,7 @@ Partition::OnBorderPause() noexcept
...
@@ -151,7 +151,7 @@ Partition::OnBorderPause() noexcept
}
}
void
void
Partition
::
OnMixerVolumeChanged
(
gcc_unused
Mixer
&
mixer
,
gcc_unused
int
volume
)
Partition
::
OnMixerVolumeChanged
(
Mixer
&
,
int
)
noexcept
{
{
InvalidateHardwareVolume
();
InvalidateHardwareVolume
();
...
...
src/Partition.hxx
View file @
7739b396
...
@@ -257,7 +257,7 @@ private:
...
@@ -257,7 +257,7 @@ private:
void
OnBorderPause
()
noexcept
override
;
void
OnBorderPause
()
noexcept
override
;
/* virtual methods from class MixerListener */
/* virtual methods from class MixerListener */
void
OnMixerVolumeChanged
(
Mixer
&
mixer
,
int
volume
)
override
;
void
OnMixerVolumeChanged
(
Mixer
&
mixer
,
int
volume
)
noexcept
override
;
/* callback for #global_events */
/* callback for #global_events */
void
OnGlobalEvent
(
unsigned
mask
);
void
OnGlobalEvent
(
unsigned
mask
);
...
...
src/mixer/Listener.hxx
View file @
7739b396
/*
/*
* Copyright 2003-201
8
The Music Player Daemon Project
* Copyright 2003-201
9
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -28,7 +28,8 @@ class Mixer;
...
@@ -28,7 +28,8 @@ class Mixer;
*/
*/
class
MixerListener
{
class
MixerListener
{
public
:
public
:
virtual
void
OnMixerVolumeChanged
(
Mixer
&
mixer
,
int
volume
)
=
0
;
virtual
void
OnMixerVolumeChanged
(
Mixer
&
mixer
,
int
volume
)
noexcept
=
0
;
};
};
#endif
#endif
test/NullMixerListener.hxx
View file @
7739b396
/*
/*
* Copyright 2003-201
8
The Music Player Daemon Project
* Copyright 2003-201
9
The Music Player Daemon Project
* http://www.musicpd.org
* http://www.musicpd.org
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
class
NullMixerListener
:
public
MixerListener
{
class
NullMixerListener
:
public
MixerListener
{
public
:
public
:
void
OnMixerVolumeChanged
(
Mixer
&
,
int
)
override
{}
void
OnMixerVolumeChanged
(
Mixer
&
,
int
)
noexcept
override
{}
};
};
#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