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
6c22c343
Commit
6c22c343
authored
Jul 04, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/oss: add `noexcept`
parent
f54710b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OssOutputPlugin.cxx
src/output/plugins/OssOutputPlugin.cxx
+4
-4
No files found.
src/output/plugins/OssOutputPlugin.cxx
View file @
6c22c343
...
...
@@ -124,7 +124,7 @@ private:
*/
void
Reopen
();
void
DoClose
();
void
DoClose
()
noexcept
;
};
static
constexpr
Domain
oss_output_domain
(
"oss_output"
);
...
...
@@ -138,7 +138,7 @@ enum oss_stat {
};
static
enum
oss_stat
oss_stat_device
(
const
char
*
device
,
int
*
errno_r
)
oss_stat_device
(
const
char
*
device
,
int
*
errno_r
)
noexcept
{
struct
stat
st
;
...
...
@@ -166,7 +166,7 @@ oss_stat_device(const char *device, int *errno_r)
static
const
char
*
const
default_devices
[]
=
{
"/dev/sound/dsp"
,
"/dev/dsp"
};
static
bool
oss_output_test_default_device
(
void
)
oss_output_test_default_device
(
)
noexcept
{
for
(
int
i
=
ARRAY_SIZE
(
default_devices
);
--
i
>=
0
;
)
{
UniqueFileDescriptor
fd
;
...
...
@@ -231,7 +231,7 @@ OssOutput::Create(EventLoop &, const ConfigBlock &block)
}
void
OssOutput
::
DoClose
()
OssOutput
::
DoClose
()
noexcept
{
if
(
fd
.
IsDefined
())
fd
.
Close
();
...
...
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