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
ff9759c0
Commit
ff9759c0
authored
Nov 12, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/pulse: add "noexcept"
parent
a92e0e85
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
Error.cxx
src/lib/pulse/Error.cxx
+1
-1
Error.hxx
src/lib/pulse/Error.hxx
+1
-1
LockGuard.hxx
src/lib/pulse/LockGuard.hxx
+2
-2
LogError.cxx
src/lib/pulse/LogError.cxx
+1
-1
LogError.hxx
src/lib/pulse/LogError.hxx
+1
-1
No files found.
src/lib/pulse/Error.cxx
View file @
ff9759c0
...
...
@@ -25,7 +25,7 @@
#include <pulse/error.h>
std
::
runtime_error
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
)
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
)
noexcept
{
const
int
e
=
pa_context_errno
(
context
);
return
FormatRuntimeError
(
"%s: %s"
,
prefix
,
pa_strerror
(
e
));
...
...
src/lib/pulse/Error.hxx
View file @
ff9759c0
...
...
@@ -25,6 +25,6 @@
struct
pa_context
;
std
::
runtime_error
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
);
MakePulseError
(
pa_context
*
context
,
const
char
*
prefix
)
noexcept
;
#endif
src/lib/pulse/LockGuard.hxx
View file @
ff9759c0
...
...
@@ -28,12 +28,12 @@ class LockGuard {
struct
pa_threaded_mainloop
*
const
mainloop
;
public
:
explicit
LockGuard
(
struct
pa_threaded_mainloop
*
_mainloop
)
explicit
LockGuard
(
struct
pa_threaded_mainloop
*
_mainloop
)
noexcept
:
mainloop
(
_mainloop
)
{
pa_threaded_mainloop_lock
(
mainloop
);
}
~
LockGuard
()
{
~
LockGuard
()
noexcept
{
pa_threaded_mainloop_unlock
(
mainloop
);
}
...
...
src/lib/pulse/LogError.cxx
View file @
ff9759c0
...
...
@@ -26,7 +26,7 @@
#include <pulse/error.h>
void
LogPulseError
(
pa_context
*
context
,
const
char
*
prefix
)
LogPulseError
(
pa_context
*
context
,
const
char
*
prefix
)
noexcept
{
const
int
e
=
pa_context_errno
(
context
);
FormatError
(
pulse_domain
,
"%s: %s"
,
prefix
,
pa_strerror
(
e
));
...
...
src/lib/pulse/LogError.hxx
View file @
ff9759c0
...
...
@@ -23,6 +23,6 @@
struct
pa_context
;
void
LogPulseError
(
pa_context
*
context
,
const
char
*
prefix
);
LogPulseError
(
pa_context
*
context
,
const
char
*
prefix
)
noexcept
;
#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