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
c5996c05
Commit
c5996c05
authored
May 15, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: add "noexcept" to many, many function prototypes
See commit
71f0ed8b
parent
cde5a079
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
20 deletions
+20
-20
DetachedSong.cxx
src/DetachedSong.cxx
+1
-1
DetachedSong.hxx
src/DetachedSong.hxx
+1
-1
Instance.cxx
src/Instance.cxx
+1
-1
Instance.hxx
src/Instance.hxx
+1
-1
Client.cxx
src/client/Client.cxx
+3
-3
Client.hxx
src/client/Client.hxx
+5
-5
Version.cxx
src/lib/alsa/Version.cxx
+2
-2
Version.hxx
src/lib/alsa/Version.hxx
+1
-1
Glue.cxx
src/lib/nfs/Glue.cxx
+2
-2
Glue.hxx
src/lib/nfs/Glue.hxx
+2
-2
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
No files found.
src/DetachedSong.cxx
View file @
c5996c05
...
...
@@ -31,7 +31,7 @@ DetachedSong::DetachedSong(const LightSong &other)
start_time
(
other
.
start_time
),
end_time
(
other
.
end_time
)
{}
DetachedSong
::
operator
LightSong
()
const
DetachedSong
::
operator
LightSong
()
const
noexcept
{
LightSong
result
;
result
.
directory
=
nullptr
;
...
...
src/DetachedSong.hxx
View file @
c5996c05
...
...
@@ -108,7 +108,7 @@ public:
DetachedSong
&
operator
=
(
DetachedSong
&&
)
=
default
;
gcc_pure
explicit
operator
LightSong
()
const
;
explicit
operator
LightSong
()
const
noexcept
;
gcc_pure
const
char
*
GetURI
()
const
noexcept
{
...
...
src/Instance.cxx
View file @
c5996c05
...
...
@@ -40,7 +40,7 @@ Instance::Instance()
}
Partition
*
Instance
::
FindPartition
(
const
char
*
name
)
Instance
::
FindPartition
(
const
char
*
name
)
noexcept
{
for
(
auto
&
partition
:
partitions
)
if
(
partition
.
name
==
name
)
...
...
src/Instance.hxx
View file @
c5996c05
...
...
@@ -111,7 +111,7 @@ struct Instance final
* no such partition was found.
*/
gcc_pure
Partition
*
FindPartition
(
const
char
*
name
);
Partition
*
FindPartition
(
const
char
*
name
)
noexcept
;
#ifdef ENABLE_DATABASE
/**
...
...
src/client/Client.cxx
View file @
c5996c05
...
...
@@ -26,19 +26,19 @@
const
Domain
client_domain
(
"client"
);
Instance
&
Client
::
GetInstance
()
Client
::
GetInstance
()
noexcept
{
return
partition
->
instance
;
}
playlist
&
Client
::
GetPlaylist
()
Client
::
GetPlaylist
()
noexcept
{
return
partition
->
playlist
;
}
PlayerControl
&
Client
::
GetPlayerControl
()
Client
::
GetPlayerControl
()
noexcept
{
return
partition
->
pc
;
}
...
...
src/client/Client.hxx
View file @
c5996c05
...
...
@@ -188,24 +188,24 @@ public:
*/
void
AllowFile
(
Path
path_fs
)
const
;
Partition
&
GetPartition
()
{
Partition
&
GetPartition
()
noexcept
{
return
*
partition
;
}
void
SetPartition
(
Partition
&
new_partition
)
{
void
SetPartition
(
Partition
&
new_partition
)
noexcept
{
partition
=
&
new_partition
;
// TODO: set various idle flags?
}
gcc_pure
Instance
&
GetInstance
();
Instance
&
GetInstance
()
noexcept
;
gcc_pure
playlist
&
GetPlaylist
();
playlist
&
GetPlaylist
()
noexcept
;
gcc_pure
PlayerControl
&
GetPlayerControl
();
PlayerControl
&
GetPlayerControl
()
noexcept
;
/**
* Wrapper for Instance::GetDatabase().
...
...
src/lib/alsa/Version.cxx
View file @
c5996c05
...
...
@@ -23,7 +23,7 @@
gcc_pure
static
uint_least32_t
ParseAlsaVersion
(
const
char
*
p
)
ParseAlsaVersion
(
const
char
*
p
)
noexcept
{
char
*
endptr
;
unsigned
long
major
,
minor
=
0
,
subminor
=
0
;
...
...
@@ -42,7 +42,7 @@ ParseAlsaVersion(const char *p)
}
uint_least32_t
GetRuntimeAlsaVersion
()
GetRuntimeAlsaVersion
()
noexcept
{
const
char
*
version
=
snd_asoundlib_version
();
if
(
version
==
nullptr
)
...
...
src/lib/alsa/Version.hxx
View file @
c5996c05
...
...
@@ -37,6 +37,6 @@ MakeAlsaVersion(uint_least32_t major, uint_least32_t minor,
*/
gcc_const
uint_least32_t
GetRuntimeAlsaVersion
();
GetRuntimeAlsaVersion
()
noexcept
;
#endif
src/lib/nfs/Glue.cxx
View file @
c5996c05
...
...
@@ -38,7 +38,7 @@ nfs_init(EventLoop &event_loop)
}
void
nfs_finish
()
nfs_finish
()
noexcept
{
assert
(
in_use
>
0
);
...
...
@@ -49,7 +49,7 @@ nfs_finish()
}
EventLoop
&
nfs_get_event_loop
()
nfs_get_event_loop
()
noexcept
{
assert
(
in_use
>
0
);
...
...
src/lib/nfs/Glue.hxx
View file @
c5996c05
...
...
@@ -30,14 +30,14 @@ void
nfs_init
(
EventLoop
&
event_loop
);
void
nfs_finish
();
nfs_finish
()
noexcept
;
/**
* Return the EventLoop that was passed to nfs_init().
*/
gcc_const
EventLoop
&
nfs_get_event_loop
();
nfs_get_event_loop
()
noexcept
;
gcc_pure
NfsConnection
&
...
...
src/output/plugins/AlsaOutputPlugin.cxx
View file @
c5996c05
...
...
@@ -1009,7 +1009,7 @@ MaybeDmix(snd_pcm_type_t type)
gcc_pure
static
bool
MaybeDmix
(
snd_pcm_t
*
pcm
)
MaybeDmix
(
snd_pcm_t
*
pcm
)
noexcept
{
return
MaybeDmix
(
snd_pcm_type
(
pcm
));
}
...
...
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