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
bc6eca21
Commit
bc6eca21
authored
Feb 01, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: add `explicit`
parent
72ec641f
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
32 additions
and
32 deletions
+32
-32
Iso9660ArchivePlugin.cxx
src/archive/plugins/Iso9660ArchivePlugin.cxx
+1
-1
ZzipArchivePlugin.cxx
src/archive/plugins/ZzipArchivePlugin.cxx
+1
-1
Directory.cxx
src/db/plugins/upnp/Directory.cxx
+1
-1
FlacEncoderPlugin.cxx
src/encoder/plugins/FlacEncoderPlugin.cxx
+1
-1
LameEncoderPlugin.cxx
src/encoder/plugins/LameEncoderPlugin.cxx
+1
-1
OpusEncoderPlugin.cxx
src/encoder/plugins/OpusEncoderPlugin.cxx
+1
-1
ShineEncoderPlugin.cxx
src/encoder/plugins/ShineEncoderPlugin.cxx
+1
-1
TwolameEncoderPlugin.cxx
src/encoder/plugins/TwolameEncoderPlugin.cxx
+1
-1
VorbisEncoderPlugin.cxx
src/encoder/plugins/VorbisEncoderPlugin.cxx
+1
-1
WaveEncoderPlugin.cxx
src/encoder/plugins/WaveEncoderPlugin.cxx
+1
-1
SignalMonitor.cxx
src/event/SignalMonitor.cxx
+1
-1
AutoConvertFilterPlugin.cxx
src/filter/plugins/AutoConvertFilterPlugin.cxx
+1
-1
ConvertFilterPlugin.cxx
src/filter/plugins/ConvertFilterPlugin.cxx
+1
-1
NormalizeFilterPlugin.cxx
src/filter/plugins/NormalizeFilterPlugin.cxx
+1
-1
RouteFilterPlugin.cxx
src/filter/plugins/RouteFilterPlugin.cxx
+1
-1
AlsaInputPlugin.cxx
src/input/plugins/AlsaInputPlugin.cxx
+1
-1
Device.cxx
src/lib/upnp/Device.cxx
+1
-1
NullMixerPlugin.cxx
src/mixer/plugins/NullMixerPlugin.cxx
+1
-1
SoftwareMixerPlugin.cxx
src/mixer/plugins/SoftwareMixerPlugin.cxx
+1
-1
SmbclientNeighborPlugin.cxx
src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+1
-1
AoOutputPlugin.cxx
src/output/plugins/AoOutputPlugin.cxx
+1
-1
FifoOutputPlugin.cxx
src/output/plugins/FifoOutputPlugin.cxx
+1
-1
NullOutputPlugin.cxx
src/output/plugins/NullOutputPlugin.cxx
+1
-1
OpenALOutputPlugin.cxx
src/output/plugins/OpenALOutputPlugin.cxx
+1
-1
PipeOutputPlugin.cxx
src/output/plugins/PipeOutputPlugin.cxx
+1
-1
RecorderOutputPlugin.cxx
src/output/plugins/RecorderOutputPlugin.cxx
+1
-1
PcmFormat.cxx
src/pcm/PcmFormat.cxx
+2
-2
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
LocalStorage.cxx
src/storage/plugins/LocalStorage.cxx
+1
-1
No files found.
src/archive/plugins/Iso9660ArchivePlugin.cxx
View file @
bc6eca21
...
...
@@ -62,7 +62,7 @@ class Iso9660ArchiveFile final : public ArchiveFile {
std
::
shared_ptr
<
Iso9660
>
iso
;
public
:
Iso9660ArchiveFile
(
std
::
shared_ptr
<
Iso9660
>
&&
_iso
)
explicit
Iso9660ArchiveFile
(
std
::
shared_ptr
<
Iso9660
>
&&
_iso
)
:
iso
(
std
::
move
(
_iso
))
{}
/**
...
...
src/archive/plugins/ZzipArchivePlugin.cxx
View file @
bc6eca21
...
...
@@ -54,7 +54,7 @@ class ZzipArchiveFile final : public ArchiveFile {
std
::
shared_ptr
<
ZzipDir
>
dir
;
public
:
ZzipArchiveFile
(
std
::
shared_ptr
<
ZzipDir
>
&&
_dir
)
explicit
ZzipArchiveFile
(
std
::
shared_ptr
<
ZzipDir
>
&&
_dir
)
:
dir
(
std
::
move
(
_dir
))
{}
void
Visit
(
ArchiveVisitor
&
visitor
)
override
;
...
...
src/db/plugins/upnp/Directory.cxx
View file @
bc6eca21
...
...
@@ -111,7 +111,7 @@ class UPnPDirParser final : public CommonExpatParser {
TagBuilder
tag
;
public
:
UPnPDirParser
(
UPnPDirContent
&
_directory
)
explicit
UPnPDirParser
(
UPnPDirContent
&
_directory
)
:
directory
(
_directory
),
state
(
NONE
),
tag_type
(
TAG_NUM_OF_ITEM_TYPES
)
...
...
src/encoder/plugins/FlacEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -82,7 +82,7 @@ class PreparedFlacEncoder final : public PreparedEncoder {
const
unsigned
compression
;
public
:
PreparedFlacEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedFlacEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/LameEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -57,7 +57,7 @@ class PreparedLameEncoder final : public PreparedEncoder {
int
bitrate
;
public
:
PreparedLameEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedLameEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/OpusEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -79,7 +79,7 @@ class PreparedOpusEncoder final : public PreparedEncoder {
const
bool
chaining
;
public
:
PreparedOpusEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedOpusEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/ShineEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -86,7 +86,7 @@ class PreparedShineEncoder final : public PreparedEncoder {
shine_config_t
config
;
public
:
PreparedShineEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedShineEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/TwolameEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -73,7 +73,7 @@ class PreparedTwolameEncoder final : public PreparedEncoder {
int
bitrate
;
public
:
PreparedTwolameEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedTwolameEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/VorbisEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -65,7 +65,7 @@ class PreparedVorbisEncoder final : public PreparedEncoder {
int
bitrate
;
public
:
PreparedVorbisEncoder
(
const
ConfigBlock
&
block
);
explicit
PreparedVorbisEncoder
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedEncoder */
Encoder
*
Open
(
AudioFormat
&
audio_format
)
override
;
...
...
src/encoder/plugins/WaveEncoderPlugin.cxx
View file @
bc6eca21
...
...
@@ -33,7 +33,7 @@ class WaveEncoder final : public Encoder {
DynamicFifoBuffer
<
uint8_t
>
buffer
;
public
:
WaveEncoder
(
AudioFormat
&
audio_format
)
noexcept
;
explicit
WaveEncoder
(
AudioFormat
&
audio_format
)
noexcept
;
/* virtual methods from class Encoder */
void
Write
(
const
void
*
data
,
size_t
length
)
override
;
...
...
src/event/SignalMonitor.cxx
View file @
bc6eca21
...
...
@@ -53,7 +53,7 @@ class SignalMonitor final : private SocketMonitor {
#endif
public
:
SignalMonitor
(
EventLoop
&
_loop
)
explicit
SignalMonitor
(
EventLoop
&
_loop
)
:
SocketMonitor
(
_loop
)
{
#ifndef USE_SIGNALFD
SocketMonitor
::
Open
(
SocketDescriptor
(
fd
.
Get
()));
...
...
src/filter/plugins/AutoConvertFilterPlugin.cxx
View file @
bc6eca21
...
...
@@ -64,7 +64,7 @@ class PreparedAutoConvertFilter final : public PreparedFilter {
std
::
unique_ptr
<
PreparedFilter
>
filter
;
public
:
PreparedAutoConvertFilter
(
std
::
unique_ptr
<
PreparedFilter
>
_filter
)
noexcept
explicit
PreparedAutoConvertFilter
(
std
::
unique_ptr
<
PreparedFilter
>
_filter
)
noexcept
:
filter
(
std
::
move
(
_filter
))
{}
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
override
;
...
...
src/filter/plugins/ConvertFilterPlugin.cxx
View file @
bc6eca21
...
...
@@ -42,7 +42,7 @@ class ConvertFilter final : public Filter {
std
::
unique_ptr
<
PcmConvert
>
state
;
public
:
ConvertFilter
(
const
AudioFormat
&
audio_format
);
explicit
ConvertFilter
(
const
AudioFormat
&
audio_format
);
void
Set
(
const
AudioFormat
&
_out_audio_format
);
...
...
src/filter/plugins/NormalizeFilterPlugin.cxx
View file @
bc6eca21
...
...
@@ -34,7 +34,7 @@ class NormalizeFilter final : public Filter {
PcmBuffer
buffer
;
public
:
NormalizeFilter
(
const
AudioFormat
&
audio_format
)
explicit
NormalizeFilter
(
const
AudioFormat
&
audio_format
)
:
Filter
(
audio_format
),
compressor
(
Compressor_new
(
0
))
{
}
...
...
src/filter/plugins/RouteFilterPlugin.cxx
View file @
bc6eca21
...
...
@@ -130,7 +130,7 @@ public:
* @param block the configuration block to read
* @param filter a route_filter whose min_channels and sources[] to set
*/
PreparedRouteFilter
(
const
ConfigBlock
&
block
);
explicit
PreparedRouteFilter
(
const
ConfigBlock
&
block
);
/* virtual methods from class PreparedFilter */
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
override
;
...
...
src/input/plugins/AlsaInputPlugin.cxx
View file @
bc6eca21
...
...
@@ -139,7 +139,7 @@ class AlsaInputStream::SourceSpec {
DivideString
components
;
public
:
SourceSpec
(
const
char
*
_uri
)
explicit
SourceSpec
(
const
char
*
_uri
)
:
uri
(
_uri
)
,
components
(
uri
,
'?'
)
{
...
...
src/lib/upnp/Device.cxx
View file @
bc6eca21
...
...
@@ -40,7 +40,7 @@ class UPnPDeviceParser final : public CommonExpatParser {
UPnPService
m_tservice
;
public
:
UPnPDeviceParser
(
UPnPDevice
&
device
)
explicit
UPnPDeviceParser
(
UPnPDevice
&
device
)
:
m_device
(
device
),
value
(
nullptr
)
{}
...
...
src/mixer/plugins/NullMixerPlugin.cxx
View file @
bc6eca21
...
...
@@ -26,7 +26,7 @@ class NullMixer final : public Mixer {
unsigned
volume
;
public
:
NullMixer
(
MixerListener
&
_listener
)
explicit
NullMixer
(
MixerListener
&
_listener
)
:
Mixer
(
null_mixer_plugin
,
_listener
),
volume
(
100
)
{
...
...
src/mixer/plugins/SoftwareMixerPlugin.cxx
View file @
bc6eca21
...
...
@@ -34,7 +34,7 @@ class SoftwareMixer final : public Mixer {
unsigned
volume
=
100
;
public
:
SoftwareMixer
(
MixerListener
&
_listener
)
explicit
SoftwareMixer
(
MixerListener
&
_listener
)
:
Mixer
(
software_mixer_plugin
,
_listener
)
{
}
...
...
src/neighbor/plugins/SmbclientNeighborPlugin.cxx
View file @
bc6eca21
...
...
@@ -66,7 +66,7 @@ class SmbclientNeighborExplorer final : public NeighborExplorer {
bool
quit
;
public
:
SmbclientNeighborExplorer
(
NeighborListener
&
_listener
)
noexcept
explicit
SmbclientNeighborExplorer
(
NeighborListener
&
_listener
)
noexcept
:
NeighborExplorer
(
_listener
),
thread
(
BIND_THIS_METHOD
(
ThreadFunc
))
{}
...
...
src/output/plugins/AoOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -52,7 +52,7 @@ class AoOutput final : AudioOutput, SafeSingleton<AoInit> {
size_t
frame_size
;
AoOutput
(
const
ConfigBlock
&
block
);
explicit
AoOutput
(
const
ConfigBlock
&
block
);
~
AoOutput
()
override
;
public
:
...
...
src/output/plugins/FifoOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -42,7 +42,7 @@ class FifoOutput final : AudioOutput {
Timer
*
timer
;
public
:
FifoOutput
(
const
ConfigBlock
&
block
);
explicit
FifoOutput
(
const
ConfigBlock
&
block
);
~
FifoOutput
()
override
{
CloseFifo
();
...
...
src/output/plugins/NullOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -27,7 +27,7 @@ class NullOutput final : AudioOutput {
Timer
*
timer
;
public
:
NullOutput
(
const
ConfigBlock
&
block
)
explicit
NullOutput
(
const
ConfigBlock
&
block
)
:
AudioOutput
(
0
),
sync
(
block
.
GetBlockValue
(
"sync"
,
true
))
{}
...
...
src/output/plugins/OpenALOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -44,7 +44,7 @@ class OpenALOutput final : AudioOutput {
ALenum
format
;
ALuint
frequency
;
OpenALOutput
(
const
ConfigBlock
&
block
);
explicit
OpenALOutput
(
const
ConfigBlock
&
block
);
public
:
static
AudioOutput
*
Create
(
EventLoop
&
,
...
...
src/output/plugins/PipeOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -30,7 +30,7 @@ class PipeOutput final : AudioOutput {
const
std
::
string
cmd
;
FILE
*
fh
;
PipeOutput
(
const
ConfigBlock
&
block
);
explicit
PipeOutput
(
const
ConfigBlock
&
block
);
public
:
static
AudioOutput
*
Create
(
EventLoop
&
,
...
...
src/output/plugins/RecorderOutputPlugin.cxx
View file @
bc6eca21
...
...
@@ -67,7 +67,7 @@ class RecorderOutput final : AudioOutput {
*/
FileOutputStream
*
file
;
RecorderOutput
(
const
ConfigBlock
&
block
);
explicit
RecorderOutput
(
const
ConfigBlock
&
block
);
public
:
static
AudioOutput
*
Create
(
EventLoop
&
,
const
ConfigBlock
&
block
)
{
...
...
src/pcm/PcmFormat.cxx
View file @
bc6eca21
...
...
@@ -53,7 +53,7 @@ struct Convert24To16 {
PcmDither
&
dither
;
Convert24To16
(
PcmDither
&
_dither
)
:
dither
(
_dither
)
{}
explicit
Convert24To16
(
PcmDither
&
_dither
)
:
dither
(
_dither
)
{}
void
Convert
(
int16_t
*
out
,
const
int32_t
*
in
,
size_t
n
)
{
dither
.
Dither24To16
(
out
,
in
,
in
+
n
);
...
...
@@ -66,7 +66,7 @@ struct Convert32To16 {
PcmDither
&
dither
;
Convert32To16
(
PcmDither
&
_dither
)
:
dither
(
_dither
)
{}
explicit
Convert32To16
(
PcmDither
&
_dither
)
:
dither
(
_dither
)
{}
void
Convert
(
int16_t
*
out
,
const
int32_t
*
in
,
size_t
n
)
{
dither
.
Dither32To16
(
out
,
in
,
in
+
n
);
...
...
src/playlist/plugins/CuePlaylistPlugin.cxx
View file @
bc6eca21
...
...
@@ -28,7 +28,7 @@ class CuePlaylist final : public SongEnumerator {
CueParser
parser
;
public
:
CuePlaylist
(
InputStreamPtr
&&
is
)
explicit
CuePlaylist
(
InputStreamPtr
&&
is
)
:
tis
(
std
::
move
(
is
))
{
}
...
...
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
View file @
bc6eca21
...
...
@@ -35,7 +35,7 @@ class ExtM3uPlaylist final : public SongEnumerator {
TextInputStream
tis
;
public
:
ExtM3uPlaylist
(
InputStreamPtr
&&
is
)
explicit
ExtM3uPlaylist
(
InputStreamPtr
&&
is
)
:
tis
(
std
::
move
(
is
))
{
}
...
...
src/playlist/plugins/M3uPlaylistPlugin.cxx
View file @
bc6eca21
...
...
@@ -28,7 +28,7 @@ class M3uPlaylist final : public SongEnumerator {
TextInputStream
tis
;
public
:
M3uPlaylist
(
InputStreamPtr
&&
is
)
explicit
M3uPlaylist
(
InputStreamPtr
&&
is
)
:
tis
(
std
::
move
(
is
))
{
}
...
...
src/storage/plugins/LocalStorage.cxx
View file @
bc6eca21
...
...
@@ -36,7 +36,7 @@ class LocalDirectoryReader final : public StorageDirectoryReader {
std
::
string
name_utf8
;
public
:
LocalDirectoryReader
(
AllocatedPath
&&
_base_fs
)
explicit
LocalDirectoryReader
(
AllocatedPath
&&
_base_fs
)
:
base_fs
(
std
::
move
(
_base_fs
)),
reader
(
base_fs
)
{}
/* virtual methods from class StorageDirectoryReader */
...
...
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