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
b64fdae9
Unverified
Commit
b64fdae9
authored
Jan 31, 2020
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] use override instead of virtual
Found with modernize-use-override Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
0b244445
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
56 additions
and
56 deletions
+56
-56
Bzip2ArchivePlugin.cxx
src/archive/plugins/Bzip2ArchivePlugin.cxx
+2
-2
Iso9660ArchivePlugin.cxx
src/archive/plugins/Iso9660ArchivePlugin.cxx
+2
-2
ZzipArchivePlugin.cxx
src/archive/plugins/ZzipArchivePlugin.cxx
+2
-2
Archive.cxx
src/db/update/Archive.cxx
+1
-1
FullyBufferedSocket.hxx
src/event/FullyBufferedSocket.hxx
+1
-1
NullFilter.hxx
src/filter/NullFilter.hxx
+1
-1
Observer.cxx
src/filter/Observer.cxx
+2
-2
NormalizeFilterPlugin.cxx
src/filter/plugins/NormalizeFilterPlugin.cxx
+1
-1
NullFilterPlugin.cxx
src/filter/plugins/NullFilterPlugin.cxx
+1
-1
AutoGunzipReader.hxx
src/fs/io/AutoGunzipReader.hxx
+1
-1
PeekReader.hxx
src/fs/io/PeekReader.hxx
+1
-1
AsyncInputStream.hxx
src/input/AsyncInputStream.hxx
+1
-1
AlsaInputPlugin.cxx
src/input/plugins/AlsaInputPlugin.cxx
+3
-3
CdioParanoiaInputPlugin.cxx
src/input/plugins/CdioParanoiaInputPlugin.cxx
+1
-1
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+3
-3
MmsInputPlugin.cxx
src/input/plugins/MmsInputPlugin.cxx
+2
-2
NfsInputPlugin.cxx
src/input/plugins/NfsInputPlugin.cxx
+3
-3
QobuzInputPlugin.cxx
src/input/plugins/QobuzInputPlugin.cxx
+1
-1
SmbclientInputPlugin.cxx
src/input/plugins/SmbclientInputPlugin.cxx
+1
-1
TidalInputPlugin.cxx
src/input/plugins/TidalInputPlugin.cxx
+1
-1
Device.cxx
src/lib/upnp/Device.cxx
+3
-3
AlsaMixerPlugin.cxx
src/mixer/plugins/AlsaMixerPlugin.cxx
+1
-1
HaikuMixerPlugin.cxx
src/mixer/plugins/HaikuMixerPlugin.cxx
+3
-3
PulseMixerPlugin.cxx
src/mixer/plugins/PulseMixerPlugin.cxx
+1
-1
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
AoOutputPlugin.cxx
src/output/plugins/AoOutputPlugin.cxx
+1
-1
FifoOutputPlugin.cxx
src/output/plugins/FifoOutputPlugin.cxx
+1
-1
ShoutOutputPlugin.cxx
src/output/plugins/ShoutOutputPlugin.cxx
+1
-1
MemorySongEnumerator.hxx
src/playlist/MemorySongEnumerator.hxx
+1
-1
CuePlaylistPlugin.cxx
src/playlist/plugins/CuePlaylistPlugin.cxx
+1
-1
ExtM3uPlaylistPlugin.cxx
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
+1
-1
M3uPlaylistPlugin.cxx
src/playlist/plugins/M3uPlaylistPlugin.cxx
+1
-1
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+1
-1
SmbclientStorage.cxx
src/storage/plugins/SmbclientStorage.cxx
+2
-2
AvahiPoll.cxx
src/zeroconf/AvahiPoll.cxx
+1
-1
DumpDatabase.cxx
test/DumpDatabase.cxx
+2
-2
run_neighbor_explorer.cxx
test/run_neighbor_explorer.cxx
+2
-2
visit_archive.cxx
test/visit_archive.cxx
+1
-1
No files found.
src/archive/plugins/Bzip2ArchivePlugin.cxx
View file @
b64fdae9
...
@@ -47,7 +47,7 @@ public:
...
@@ -47,7 +47,7 @@ public:
name
.
erase
(
len
-
4
);
name
.
erase
(
len
-
4
);
}
}
v
irtual
v
oid
Visit
(
ArchiveVisitor
&
visitor
)
override
{
void
Visit
(
ArchiveVisitor
&
visitor
)
override
{
visitor
.
VisitArchiveEntry
(
name
.
c_str
());
visitor
.
VisitArchiveEntry
(
name
.
c_str
());
}
}
...
@@ -68,7 +68,7 @@ public:
...
@@ -68,7 +68,7 @@ public:
Bzip2InputStream
(
const
std
::
shared_ptr
<
InputStream
>
&
_input
,
Bzip2InputStream
(
const
std
::
shared_ptr
<
InputStream
>
&
_input
,
const
char
*
uri
,
const
char
*
uri
,
Mutex
&
mutex
);
Mutex
&
mutex
);
~
Bzip2InputStream
();
~
Bzip2InputStream
()
override
;
/* virtual methods from InputStream */
/* virtual methods from InputStream */
bool
IsEOF
()
const
noexcept
override
;
bool
IsEOF
()
const
noexcept
override
;
...
...
src/archive/plugins/Iso9660ArchivePlugin.cxx
View file @
b64fdae9
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
void
Visit
(
char
*
path
,
size_t
length
,
size_t
capacity
,
void
Visit
(
char
*
path
,
size_t
length
,
size_t
capacity
,
ArchiveVisitor
&
visitor
);
ArchiveVisitor
&
visitor
);
v
irtual
v
oid
Visit
(
ArchiveVisitor
&
visitor
)
override
;
void
Visit
(
ArchiveVisitor
&
visitor
)
override
;
InputStreamPtr
OpenStream
(
const
char
*
path
,
InputStreamPtr
OpenStream
(
const
char
*
path
,
Mutex
&
mutex
)
override
;
Mutex
&
mutex
)
override
;
...
@@ -152,7 +152,7 @@ public:
...
@@ -152,7 +152,7 @@ public:
SetReady
();
SetReady
();
}
}
~
Iso9660InputStream
()
{
~
Iso9660InputStream
()
override
{
free
(
statbuf
);
free
(
statbuf
);
}
}
...
...
src/archive/plugins/ZzipArchivePlugin.cxx
View file @
b64fdae9
...
@@ -57,7 +57,7 @@ public:
...
@@ -57,7 +57,7 @@ public:
ZzipArchiveFile
(
std
::
shared_ptr
<
ZzipDir
>
&&
_dir
)
ZzipArchiveFile
(
std
::
shared_ptr
<
ZzipDir
>
&&
_dir
)
:
dir
(
std
::
move
(
_dir
))
{}
:
dir
(
std
::
move
(
_dir
))
{}
v
irtual
v
oid
Visit
(
ArchiveVisitor
&
visitor
)
override
;
void
Visit
(
ArchiveVisitor
&
visitor
)
override
;
InputStreamPtr
OpenStream
(
const
char
*
path
,
InputStreamPtr
OpenStream
(
const
char
*
path
,
Mutex
&
mutex
)
override
;
Mutex
&
mutex
)
override
;
...
@@ -106,7 +106,7 @@ public:
...
@@ -106,7 +106,7 @@ public:
SetReady
();
SetReady
();
}
}
~
ZzipInputStream
()
{
~
ZzipInputStream
()
override
{
zzip_file_close
(
file
);
zzip_file_close
(
file
);
}
}
...
...
src/db/update/Archive.cxx
View file @
b64fdae9
...
@@ -107,7 +107,7 @@ class UpdateArchiveVisitor final : public ArchiveVisitor {
...
@@ -107,7 +107,7 @@ class UpdateArchiveVisitor final : public ArchiveVisitor {
Directory
&
_directory
)
noexcept
Directory
&
_directory
)
noexcept
:
walk
(
_walk
),
archive
(
_archive
),
directory
(
_directory
)
{}
:
walk
(
_walk
),
archive
(
_archive
),
directory
(
_directory
)
{}
v
irtual
v
oid
VisitArchiveEntry
(
const
char
*
path_utf8
)
override
{
void
VisitArchiveEntry
(
const
char
*
path_utf8
)
override
{
FormatDebug
(
update_domain
,
FormatDebug
(
update_domain
,
"adding archive file: %s"
,
path_utf8
);
"adding archive file: %s"
,
path_utf8
);
walk
.
UpdateArchiveTree
(
archive
,
directory
,
path_utf8
);
walk
.
UpdateArchiveTree
(
archive
,
directory
,
path_utf8
);
...
...
src/event/FullyBufferedSocket.hxx
View file @
b64fdae9
...
@@ -69,7 +69,7 @@ protected:
...
@@ -69,7 +69,7 @@ protected:
/* virtual methods from class SocketMonitor */
/* virtual methods from class SocketMonitor */
bool
OnSocketReady
(
unsigned
flags
)
noexcept
override
;
bool
OnSocketReady
(
unsigned
flags
)
noexcept
override
;
v
irtual
v
oid
OnIdle
()
noexcept
override
;
void
OnIdle
()
noexcept
override
;
};
};
#endif
#endif
src/filter/NullFilter.hxx
View file @
b64fdae9
...
@@ -27,7 +27,7 @@ class NullFilter final : public Filter {
...
@@ -27,7 +27,7 @@ class NullFilter final : public Filter {
public
:
public
:
explicit
NullFilter
(
const
AudioFormat
&
af
)
:
Filter
(
af
)
{}
explicit
NullFilter
(
const
AudioFormat
&
af
)
:
Filter
(
af
)
{}
virtual
ConstBuffer
<
void
>
FilterPCM
(
ConstBuffer
<
void
>
src
)
override
{
ConstBuffer
<
void
>
FilterPCM
(
ConstBuffer
<
void
>
src
)
override
{
return
src
;
return
src
;
}
}
};
};
...
...
src/filter/Observer.cxx
View file @
b64fdae9
...
@@ -36,7 +36,7 @@ public:
...
@@ -36,7 +36,7 @@ public:
:
observer
(
_observer
),
:
observer
(
_observer
),
prepared_filter
(
std
::
move
(
_prepared_filter
))
{}
prepared_filter
(
std
::
move
(
_prepared_filter
))
{}
~
PreparedProxy
()
noexcept
{
~
PreparedProxy
()
noexcept
override
{
assert
(
child
==
nullptr
);
assert
(
child
==
nullptr
);
assert
(
observer
.
proxy
==
this
);
assert
(
observer
.
proxy
==
this
);
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
:
Filter
(
_filter
->
GetOutAudioFormat
()),
:
Filter
(
_filter
->
GetOutAudioFormat
()),
parent
(
_parent
),
filter
(
std
::
move
(
_filter
))
{}
parent
(
_parent
),
filter
(
std
::
move
(
_filter
))
{}
~
Proxy
()
noexcept
{
~
Proxy
()
noexcept
override
{
parent
.
Clear
(
this
);
parent
.
Clear
(
this
);
}
}
...
...
src/filter/plugins/NormalizeFilterPlugin.cxx
View file @
b64fdae9
...
@@ -38,7 +38,7 @@ public:
...
@@ -38,7 +38,7 @@ public:
:
Filter
(
audio_format
),
compressor
(
Compressor_new
(
0
))
{
:
Filter
(
audio_format
),
compressor
(
Compressor_new
(
0
))
{
}
}
~
NormalizeFilter
()
{
~
NormalizeFilter
()
override
{
Compressor_delete
(
compressor
);
Compressor_delete
(
compressor
);
}
}
...
...
src/filter/plugins/NullFilterPlugin.cxx
View file @
b64fdae9
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
class
PreparedNullFilter
final
:
public
PreparedFilter
{
class
PreparedNullFilter
final
:
public
PreparedFilter
{
public
:
public
:
virtual
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
override
{
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
override
{
return
std
::
make_unique
<
NullFilter
>
(
af
);
return
std
::
make_unique
<
NullFilter
>
(
af
);
}
}
};
};
...
...
src/fs/io/AutoGunzipReader.hxx
View file @
b64fdae9
...
@@ -40,7 +40,7 @@ public:
...
@@ -40,7 +40,7 @@ public:
~
AutoGunzipReader
()
noexcept
;
~
AutoGunzipReader
()
noexcept
;
/* virtual methods from class Reader */
/* virtual methods from class Reader */
virtual
size_t
Read
(
void
*
data
,
size_t
size
)
override
;
size_t
Read
(
void
*
data
,
size_t
size
)
override
;
private
:
private
:
void
Detect
();
void
Detect
();
...
...
src/fs/io/PeekReader.hxx
View file @
b64fdae9
...
@@ -43,7 +43,7 @@ public:
...
@@ -43,7 +43,7 @@ public:
const
void
*
Peek
(
size_t
size
);
const
void
*
Peek
(
size_t
size
);
/* virtual methods from class Reader */
/* virtual methods from class Reader */
virtual
size_t
Read
(
void
*
data
,
size_t
size
)
override
;
size_t
Read
(
void
*
data
,
size_t
size
)
override
;
};
};
#endif
#endif
src/input/AsyncInputStream.hxx
View file @
b64fdae9
...
@@ -74,7 +74,7 @@ public:
...
@@ -74,7 +74,7 @@ public:
size_t
_buffer_size
,
size_t
_buffer_size
,
size_t
_resume_at
)
noexcept
;
size_t
_resume_at
)
noexcept
;
virtual
~
AsyncInputStream
()
noexcept
;
~
AsyncInputStream
()
noexcept
override
;
auto
&
GetEventLoop
()
const
noexcept
{
auto
&
GetEventLoop
()
const
noexcept
{
return
deferred_resume
.
GetEventLoop
();
return
deferred_resume
.
GetEventLoop
();
...
...
src/input/plugins/AlsaInputPlugin.cxx
View file @
b64fdae9
...
@@ -89,7 +89,7 @@ public:
...
@@ -89,7 +89,7 @@ public:
Mutex
&
_mutex
,
Mutex
&
_mutex
,
const
SourceSpec
&
spec
);
const
SourceSpec
&
spec
);
~
AlsaInputStream
()
{
~
AlsaInputStream
()
override
{
BlockingCall
(
MultiSocketMonitor
::
GetEventLoop
(),
[
this
](){
BlockingCall
(
MultiSocketMonitor
::
GetEventLoop
(),
[
this
](){
MultiSocketMonitor
::
Reset
();
MultiSocketMonitor
::
Reset
();
defer_invalidate_sockets
.
Cancel
();
defer_invalidate_sockets
.
Cancel
();
...
@@ -103,13 +103,13 @@ public:
...
@@ -103,13 +103,13 @@ public:
protected
:
protected
:
/* virtual methods from AsyncInputStream */
/* virtual methods from AsyncInputStream */
v
irtual
v
oid
DoResume
()
override
{
void
DoResume
()
override
{
snd_pcm_resume
(
capture_handle
);
snd_pcm_resume
(
capture_handle
);
InvalidateSockets
();
InvalidateSockets
();
}
}
v
irtual
v
oid
DoSeek
(
gcc_unused
offset_type
new_offset
)
override
{
void
DoSeek
(
gcc_unused
offset_type
new_offset
)
override
{
/* unreachable because seekable==false */
/* unreachable because seekable==false */
SeekDone
();
SeekDone
();
}
}
...
...
src/input/plugins/CdioParanoiaInputPlugin.cxx
View file @
b64fdae9
...
@@ -81,7 +81,7 @@ class CdioParanoiaInputStream final : public InputStream {
...
@@ -81,7 +81,7 @@ class CdioParanoiaInputStream final : public InputStream {
SetReady
();
SetReady
();
}
}
~
CdioParanoiaInputStream
()
{
~
CdioParanoiaInputStream
()
override
{
para
=
{};
para
=
{};
cdio_cddap_close_no_free_cdio
(
drv
);
cdio_cddap_close_no_free_cdio
(
drv
);
cdio_destroy
(
cdio
);
cdio_destroy
(
cdio
);
...
...
src/input/plugins/CurlInputPlugin.cxx
View file @
b64fdae9
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
I
&&
_icy
,
I
&&
_icy
,
Mutex
&
_mutex
);
Mutex
&
_mutex
);
~
CurlInputStream
()
noexcept
;
~
CurlInputStream
()
noexcept
override
;
CurlInputStream
(
const
CurlInputStream
&
)
=
delete
;
CurlInputStream
(
const
CurlInputStream
&
)
=
delete
;
CurlInputStream
&
operator
=
(
const
CurlInputStream
&
)
=
delete
;
CurlInputStream
&
operator
=
(
const
CurlInputStream
&
)
=
delete
;
...
@@ -137,8 +137,8 @@ private:
...
@@ -137,8 +137,8 @@ private:
void
OnError
(
std
::
exception_ptr
e
)
noexcept
override
;
void
OnError
(
std
::
exception_ptr
e
)
noexcept
override
;
/* virtual methods from AsyncInputStream */
/* virtual methods from AsyncInputStream */
v
irtual
v
oid
DoResume
()
override
;
void
DoResume
()
override
;
v
irtual
v
oid
DoSeek
(
offset_type
new_offset
)
override
;
void
DoSeek
(
offset_type
new_offset
)
override
;
};
};
/** libcurl should accept "ICY 200 OK" */
/** libcurl should accept "ICY 200 OK" */
...
...
src/input/plugins/MmsInputPlugin.cxx
View file @
b64fdae9
...
@@ -42,8 +42,8 @@ public:
...
@@ -42,8 +42,8 @@ public:
}
}
protected
:
protected
:
v
irtual
v
oid
Open
()
override
;
void
Open
()
override
;
virtual
size_t
ThreadRead
(
void
*
ptr
,
size_t
size
)
override
;
size_t
ThreadRead
(
void
*
ptr
,
size_t
size
)
override
;
void
Close
()
noexcept
override
{
void
Close
()
noexcept
override
{
mmsx_close
(
mms
);
mmsx_close
(
mms
);
...
...
src/input/plugins/NfsInputPlugin.cxx
View file @
b64fdae9
...
@@ -47,7 +47,7 @@ public:
...
@@ -47,7 +47,7 @@ public:
NFS_MAX_BUFFERED
,
NFS_MAX_BUFFERED
,
NFS_RESUME_AT
)
{}
NFS_RESUME_AT
)
{}
virtual
~
NfsInputStream
()
{
~
NfsInputStream
()
override
{
DeferClose
();
DeferClose
();
}
}
...
@@ -62,8 +62,8 @@ private:
...
@@ -62,8 +62,8 @@ private:
protected
:
protected
:
/* virtual methods from AsyncInputStream */
/* virtual methods from AsyncInputStream */
v
irtual
v
oid
DoResume
()
override
;
void
DoResume
()
override
;
v
irtual
v
oid
DoSeek
(
offset_type
new_offset
)
override
;
void
DoSeek
(
offset_type
new_offset
)
override
;
private
:
private
:
/* virtual methods from NfsFileReader */
/* virtual methods from NfsFileReader */
...
...
src/input/plugins/QobuzInputPlugin.cxx
View file @
b64fdae9
...
@@ -53,7 +53,7 @@ public:
...
@@ -53,7 +53,7 @@ public:
qobuz_client
->
AddLoginHandler
(
*
this
);
qobuz_client
->
AddLoginHandler
(
*
this
);
}
}
~
QobuzInputStream
()
{
~
QobuzInputStream
()
override
{
qobuz_client
->
RemoveLoginHandler
(
*
this
);
qobuz_client
->
RemoveLoginHandler
(
*
this
);
}
}
...
...
src/input/plugins/SmbclientInputPlugin.cxx
View file @
b64fdae9
...
@@ -43,7 +43,7 @@ public:
...
@@ -43,7 +43,7 @@ public:
SetReady
();
SetReady
();
}
}
~
SmbclientInputStream
()
{
~
SmbclientInputStream
()
override
{
const
std
::
lock_guard
<
Mutex
>
lock
(
smbclient_mutex
);
const
std
::
lock_guard
<
Mutex
>
lock
(
smbclient_mutex
);
smbc_close
(
fd
);
smbc_close
(
fd
);
smbc_free_context
(
ctx
,
1
);
smbc_free_context
(
ctx
,
1
);
...
...
src/input/plugins/TidalInputPlugin.cxx
View file @
b64fdae9
...
@@ -65,7 +65,7 @@ public:
...
@@ -65,7 +65,7 @@ public:
tidal_session
->
AddLoginHandler
(
*
this
);
tidal_session
->
AddLoginHandler
(
*
this
);
}
}
~
TidalInputStream
()
{
~
TidalInputStream
()
override
{
tidal_session
->
RemoveLoginHandler
(
*
this
);
tidal_session
->
RemoveLoginHandler
(
*
this
);
}
}
...
...
src/lib/upnp/Device.cxx
View file @
b64fdae9
...
@@ -45,7 +45,7 @@ public:
...
@@ -45,7 +45,7 @@ public:
value
(
nullptr
)
{}
value
(
nullptr
)
{}
protected
:
protected
:
v
irtual
void
StartElement
(
const
XML_Char
*
name
,
const
XML_Char
**
)
{
v
oid
StartElement
(
const
XML_Char
*
name
,
const
XML_Char
**
)
override
{
value
=
nullptr
;
value
=
nullptr
;
switch
(
name
[
0
])
{
switch
(
name
[
0
])
{
...
@@ -80,7 +80,7 @@ protected:
...
@@ -80,7 +80,7 @@ protected:
}
}
}
}
v
irtual
void
EndElement
(
const
XML_Char
*
name
)
{
v
oid
EndElement
(
const
XML_Char
*
name
)
override
{
if
(
value
!=
nullptr
)
{
if
(
value
!=
nullptr
)
{
trimstring
(
*
value
);
trimstring
(
*
value
);
value
=
nullptr
;
value
=
nullptr
;
...
@@ -90,7 +90,7 @@ protected:
...
@@ -90,7 +90,7 @@ protected:
}
}
}
}
v
irtual
void
CharacterData
(
const
XML_Char
*
s
,
int
len
)
{
v
oid
CharacterData
(
const
XML_Char
*
s
,
int
len
)
override
{
if
(
value
!=
nullptr
)
if
(
value
!=
nullptr
)
value
->
append
(
s
,
len
);
value
->
append
(
s
,
len
);
}
}
...
...
src/mixer/plugins/AlsaMixerPlugin.cxx
View file @
b64fdae9
...
@@ -86,7 +86,7 @@ public:
...
@@ -86,7 +86,7 @@ public:
:
Mixer
(
alsa_mixer_plugin
,
_listener
),
:
Mixer
(
alsa_mixer_plugin
,
_listener
),
event_loop
(
_event_loop
)
{}
event_loop
(
_event_loop
)
{}
virtual
~
AlsaMixer
()
;
~
AlsaMixer
()
override
;
void
Configure
(
const
ConfigBlock
&
block
);
void
Configure
(
const
ConfigBlock
&
block
);
void
Setup
();
void
Setup
();
...
...
src/mixer/plugins/HaikuMixerPlugin.cxx
View file @
b64fdae9
...
@@ -36,14 +36,14 @@ public:
...
@@ -36,14 +36,14 @@ public:
self
(
_output
)
{}
self
(
_output
)
{}
/* virtual methods from class Mixer */
/* virtual methods from class Mixer */
v
irtual
v
oid
Open
()
override
{
void
Open
()
override
{
}
}
void
Close
()
noexcept
override
{
void
Close
()
noexcept
override
{
}
}
virtual
int
GetVolume
()
override
;
int
GetVolume
()
override
;
v
irtual
v
oid
SetVolume
(
unsigned
volume
)
override
;
void
SetVolume
(
unsigned
volume
)
override
;
};
};
static
Mixer
*
static
Mixer
*
...
...
src/mixer/plugins/PulseMixerPlugin.cxx
View file @
b64fdae9
...
@@ -54,7 +54,7 @@ public:
...
@@ -54,7 +54,7 @@ public:
{
{
}
}
virtual
~
PulseMixer
()
;
~
PulseMixer
()
override
;
void
Offline
();
void
Offline
();
void
VolumeCallback
(
const
pa_sink_input_info
*
i
,
int
eol
);
void
VolumeCallback
(
const
pa_sink_input_info
*
i
,
int
eol
);
...
...
src/output/plugins/AlsaOutputPlugin.cxx
View file @
b64fdae9
...
@@ -210,7 +210,7 @@ class AlsaOutput final
...
@@ -210,7 +210,7 @@ class AlsaOutput final
public
:
public
:
AlsaOutput
(
EventLoop
&
loop
,
const
ConfigBlock
&
block
);
AlsaOutput
(
EventLoop
&
loop
,
const
ConfigBlock
&
block
);
~
AlsaOutput
()
noexcept
{
~
AlsaOutput
()
noexcept
override
{
/* free libasound's config cache */
/* free libasound's config cache */
snd_config_update_free_global
();
snd_config_update_free_global
();
}
}
...
...
src/output/plugins/AoOutputPlugin.cxx
View file @
b64fdae9
...
@@ -53,7 +53,7 @@ class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
...
@@ -53,7 +53,7 @@ class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
size_t
frame_size
;
size_t
frame_size
;
AoOutput
(
const
ConfigBlock
&
block
);
AoOutput
(
const
ConfigBlock
&
block
);
~
AoOutput
();
~
AoOutput
()
override
;
public
:
public
:
static
AudioOutput
*
Create
(
EventLoop
&
,
const
ConfigBlock
&
block
)
{
static
AudioOutput
*
Create
(
EventLoop
&
,
const
ConfigBlock
&
block
)
{
...
...
src/output/plugins/FifoOutputPlugin.cxx
View file @
b64fdae9
...
@@ -44,7 +44,7 @@ class FifoOutput final : AudioOutput {
...
@@ -44,7 +44,7 @@ class FifoOutput final : AudioOutput {
public
:
public
:
FifoOutput
(
const
ConfigBlock
&
block
);
FifoOutput
(
const
ConfigBlock
&
block
);
~
FifoOutput
()
{
~
FifoOutput
()
override
{
CloseFifo
();
CloseFifo
();
}
}
...
...
src/output/plugins/ShoutOutputPlugin.cxx
View file @
b64fdae9
...
@@ -49,7 +49,7 @@ struct ShoutOutput final : AudioOutput {
...
@@ -49,7 +49,7 @@ struct ShoutOutput final : AudioOutput {
uint8_t
buffer
[
32768
];
uint8_t
buffer
[
32768
];
explicit
ShoutOutput
(
const
ConfigBlock
&
block
);
explicit
ShoutOutput
(
const
ConfigBlock
&
block
);
~
ShoutOutput
();
~
ShoutOutput
()
override
;
static
AudioOutput
*
Create
(
EventLoop
&
event_loop
,
static
AudioOutput
*
Create
(
EventLoop
&
event_loop
,
const
ConfigBlock
&
block
);
const
ConfigBlock
&
block
);
...
...
src/playlist/MemorySongEnumerator.hxx
View file @
b64fdae9
...
@@ -32,7 +32,7 @@ public:
...
@@ -32,7 +32,7 @@ public:
MemorySongEnumerator
(
std
::
forward_list
<
DetachedSong
>
&&
_songs
)
MemorySongEnumerator
(
std
::
forward_list
<
DetachedSong
>
&&
_songs
)
:
songs
(
std
::
move
(
_songs
))
{}
:
songs
(
std
::
move
(
_songs
))
{}
virtual
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
};
};
#endif
#endif
src/playlist/plugins/CuePlaylistPlugin.cxx
View file @
b64fdae9
...
@@ -32,7 +32,7 @@ class CuePlaylist final : public SongEnumerator {
...
@@ -32,7 +32,7 @@ class CuePlaylist final : public SongEnumerator {
:
tis
(
std
::
move
(
is
))
{
:
tis
(
std
::
move
(
is
))
{
}
}
virtual
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
};
};
static
std
::
unique_ptr
<
SongEnumerator
>
static
std
::
unique_ptr
<
SongEnumerator
>
...
...
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
View file @
b64fdae9
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
return
nullptr
;
return
nullptr
;
}
}
virtual
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
};
};
static
std
::
unique_ptr
<
SongEnumerator
>
static
std
::
unique_ptr
<
SongEnumerator
>
...
...
src/playlist/plugins/M3uPlaylistPlugin.cxx
View file @
b64fdae9
...
@@ -32,7 +32,7 @@ public:
...
@@ -32,7 +32,7 @@ public:
:
tis
(
std
::
move
(
is
))
{
:
tis
(
std
::
move
(
is
))
{
}
}
virtual
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
std
::
unique_ptr
<
DetachedSong
>
NextSong
()
override
;
};
};
static
std
::
unique_ptr
<
SongEnumerator
>
static
std
::
unique_ptr
<
SongEnumerator
>
...
...
src/storage/plugins/NfsStorage.cxx
View file @
b64fdae9
...
@@ -80,7 +80,7 @@ public:
...
@@ -80,7 +80,7 @@ public:
nfs_init
(
_loop
);
nfs_init
(
_loop
);
}
}
~
NfsStorage
()
{
~
NfsStorage
()
override
{
BlockingCall
(
GetEventLoop
(),
[
this
](){
Disconnect
();
});
BlockingCall
(
GetEventLoop
(),
[
this
](){
Disconnect
();
});
nfs_finish
();
nfs_finish
();
}
}
...
...
src/storage/plugins/SmbclientStorage.cxx
View file @
b64fdae9
...
@@ -42,7 +42,7 @@ public:
...
@@ -42,7 +42,7 @@ public:
SmbclientDirectoryReader
(
std
::
string
&&
_base
,
unsigned
_handle
)
SmbclientDirectoryReader
(
std
::
string
&&
_base
,
unsigned
_handle
)
:
base
(
std
::
move
(
_base
)),
handle
(
_handle
)
{}
:
base
(
std
::
move
(
_base
)),
handle
(
_handle
)
{}
virtual
~
SmbclientDirectoryReader
()
;
~
SmbclientDirectoryReader
()
override
;
/* virtual methods from class StorageDirectoryReader */
/* virtual methods from class StorageDirectoryReader */
const
char
*
Read
()
noexcept
override
;
const
char
*
Read
()
noexcept
override
;
...
@@ -58,7 +58,7 @@ public:
...
@@ -58,7 +58,7 @@ public:
SmbclientStorage
(
const
char
*
_base
,
SMBCCTX
*
_ctx
)
SmbclientStorage
(
const
char
*
_base
,
SMBCCTX
*
_ctx
)
:
base
(
_base
),
ctx
(
_ctx
)
{}
:
base
(
_base
),
ctx
(
_ctx
)
{}
virtual
~
SmbclientStorage
()
{
~
SmbclientStorage
()
override
{
const
std
::
lock_guard
<
Mutex
>
lock
(
smbclient_mutex
);
const
std
::
lock_guard
<
Mutex
>
lock
(
smbclient_mutex
);
smbc_free_context
(
ctx
,
1
);
smbc_free_context
(
ctx
,
1
);
}
}
...
...
src/zeroconf/AvahiPoll.cxx
View file @
b64fdae9
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
private
:
private
:
/* virtual methods from class SocketMonitor */
/* virtual methods from class SocketMonitor */
bool
OnSocketReady
(
unsigned
flags
)
noexcept
{
bool
OnSocketReady
(
unsigned
flags
)
noexcept
override
{
received
=
ToAvahiWatchEvent
(
flags
);
received
=
ToAvahiWatchEvent
(
flags
);
callback
(
this
,
GetSocket
().
Get
(),
received
,
userdata
);
callback
(
this
,
GetSocket
().
Get
(),
received
,
userdata
);
received
=
AvahiWatchEvent
(
0
);
received
=
AvahiWatchEvent
(
0
);
...
...
test/DumpDatabase.cxx
View file @
b64fdae9
...
@@ -68,11 +68,11 @@ InputStream::LockRead(void *, size_t)
...
@@ -68,11 +68,11 @@ InputStream::LockRead(void *, size_t)
class
MyDatabaseListener
final
:
public
DatabaseListener
{
class
MyDatabaseListener
final
:
public
DatabaseListener
{
public
:
public
:
v
irtual
v
oid
OnDatabaseModified
()
noexcept
override
{
void
OnDatabaseModified
()
noexcept
override
{
cout
<<
"DatabaseModified"
<<
endl
;
cout
<<
"DatabaseModified"
<<
endl
;
}
}
v
irtual
v
oid
OnDatabaseSongRemoved
(
const
char
*
uri
)
noexcept
override
{
void
OnDatabaseSongRemoved
(
const
char
*
uri
)
noexcept
override
{
cout
<<
"SongRemoved "
<<
uri
<<
endl
;
cout
<<
"SongRemoved "
<<
uri
<<
endl
;
}
}
};
};
...
...
test/run_neighbor_explorer.cxx
View file @
b64fdae9
...
@@ -32,12 +32,12 @@
...
@@ -32,12 +32,12 @@
class
MyNeighborListener
final
:
public
NeighborListener
{
class
MyNeighborListener
final
:
public
NeighborListener
{
public
:
public
:
/* virtual methods from class NeighborListener */
/* virtual methods from class NeighborListener */
v
irtual
v
oid
FoundNeighbor
(
const
NeighborInfo
&
info
)
noexcept
override
{
void
FoundNeighbor
(
const
NeighborInfo
&
info
)
noexcept
override
{
printf
(
"found '%s' (%s)
\n
"
,
printf
(
"found '%s' (%s)
\n
"
,
info
.
display_name
.
c_str
(),
info
.
uri
.
c_str
());
info
.
display_name
.
c_str
(),
info
.
uri
.
c_str
());
}
}
v
irtual
v
oid
LostNeighbor
(
const
NeighborInfo
&
info
)
noexcept
override
{
void
LostNeighbor
(
const
NeighborInfo
&
info
)
noexcept
override
{
printf
(
"lost '%s' (%s)
\n
"
,
printf
(
"lost '%s' (%s)
\n
"
,
info
.
display_name
.
c_str
(),
info
.
uri
.
c_str
());
info
.
display_name
.
c_str
(),
info
.
uri
.
c_str
());
}
}
...
...
test/visit_archive.cxx
View file @
b64fdae9
...
@@ -54,7 +54,7 @@ public:
...
@@ -54,7 +54,7 @@ public:
class
MyArchiveVisitor
final
:
public
ArchiveVisitor
{
class
MyArchiveVisitor
final
:
public
ArchiveVisitor
{
public
:
public
:
v
irtual
v
oid
VisitArchiveEntry
(
const
char
*
path_utf8
)
override
{
void
VisitArchiveEntry
(
const
char
*
path_utf8
)
override
{
printf
(
"%s
\n
"
,
path_utf8
);
printf
(
"%s
\n
"
,
path_utf8
);
}
}
};
};
...
...
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