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
594dfe57
Unverified
Commit
594dfe57
authored
Jan 16, 2021
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-tidy: mark a bunch of variables constexpr
Found with cppcoreguidelines-interfaces-global-init Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
906e82f6
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
15 additions
and
15 deletions
+15
-15
ArchiveList.cxx
src/archive/ArchiveList.cxx
+1
-1
Registry.cxx
src/db/Registry.cxx
+1
-1
SimpleDatabasePlugin.cxx
src/db/plugins/simple/SimpleDatabasePlugin.cxx
+1
-1
DecoderList.cxx
src/decoder/DecoderList.cxx
+1
-1
EncoderList.cxx
src/encoder/EncoderList.cxx
+1
-1
Registry.cxx
src/filter/Registry.cxx
+1
-1
Registry.cxx
src/input/Registry.cxx
+1
-1
Registry.cxx
src/neighbor/Registry.cxx
+1
-1
Registry.cxx
src/output/Registry.cxx
+1
-1
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
PulseOutputPlugin.cxx
src/output/plugins/PulseOutputPlugin.cxx
+1
-1
PlaylistRegistry.cxx
src/playlist/PlaylistRegistry.cxx
+1
-1
ExtM3uPlaylistPlugin.cxx
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
+1
-1
Registry.cxx
src/storage/Registry.cxx
+1
-1
LocalStorage.cxx
src/storage/plugins/LocalStorage.cxx
+1
-1
No files found.
src/archive/ArchiveList.cxx
View file @
594dfe57
...
...
@@ -30,7 +30,7 @@
#include <string.h>
const
ArchivePlugin
*
const
archive_plugins
[]
=
{
const
expr
const
ArchivePlugin
*
archive_plugins
[]
=
{
#ifdef ENABLE_BZ2
&
bz2_archive_plugin
,
#endif
...
...
src/db/Registry.cxx
View file @
594dfe57
...
...
@@ -26,7 +26,7 @@
#include <string.h>
const
DatabasePlugin
*
const
database_plugins
[]
=
{
const
expr
const
DatabasePlugin
*
database_plugins
[]
=
{
&
simple_db_plugin
,
#ifdef ENABLE_LIBMPDCLIENT
&
proxy_db_plugin
,
...
...
src/db/plugins/simple/SimpleDatabasePlugin.cxx
View file @
594dfe57
...
...
@@ -479,7 +479,7 @@ SimpleDatabase::Unmount(const char *uri) noexcept
return
true
;
}
const
DatabasePlugin
simple_db_plugin
=
{
const
expr
DatabasePlugin
simple_db_plugin
=
{
"simple"
,
DatabasePlugin
::
FLAG_REQUIRE_STORAGE
,
SimpleDatabase
::
Create
,
...
...
src/decoder/DecoderList.cxx
View file @
594dfe57
...
...
@@ -53,7 +53,7 @@
#include <string.h>
const
struct
DecoderPlugin
*
const
decoder_plugins
[]
=
{
const
expr
const
struct
DecoderPlugin
*
decoder_plugins
[]
=
{
#ifdef ENABLE_MAD
&
mad_decoder_plugin
,
#endif
...
...
src/encoder/EncoderList.cxx
View file @
594dfe57
...
...
@@ -33,7 +33,7 @@
#include <string.h>
const
EncoderPlugin
*
const
encoder_plugins
[]
=
{
const
expr
const
EncoderPlugin
*
encoder_plugins
[]
=
{
&
null_encoder_plugin
,
#ifdef ENABLE_VORBISENC
&
vorbis_encoder_plugin
,
...
...
src/filter/Registry.cxx
View file @
594dfe57
...
...
@@ -28,7 +28,7 @@
#include <string.h>
static
const
FilterPlugin
*
const
filter_plugins
[]
=
{
static
const
expr
const
FilterPlugin
*
filter_plugins
[]
=
{
&
null_filter_plugin
,
&
route_filter_plugin
,
&
normalize_filter_plugin
,
...
...
src/input/Registry.cxx
View file @
594dfe57
...
...
@@ -52,7 +52,7 @@
#include "plugins/CdioParanoiaInputPlugin.hxx"
#endif
const
InputPlugin
*
const
input_plugins
[]
=
{
const
expr
const
InputPlugin
*
input_plugins
[]
=
{
#ifdef ENABLE_ALSA
&
input_plugin_alsa
,
#endif
...
...
src/neighbor/Registry.cxx
View file @
594dfe57
...
...
@@ -26,7 +26,7 @@
#include <string.h>
const
NeighborPlugin
*
const
neighbor_plugins
[]
=
{
const
expr
const
NeighborPlugin
*
neighbor_plugins
[]
=
{
#ifdef ENABLE_SMBCLIENT
&
smbclient_neighbor_plugin
,
#endif
...
...
src/output/Registry.cxx
View file @
594dfe57
...
...
@@ -46,7 +46,7 @@
#endif
#include "util/StringAPI.hxx"
const
AudioOutputPlugin
*
const
audio_output_plugins
[]
=
{
const
expr
const
AudioOutputPlugin
*
audio_output_plugins
[]
=
{
#ifdef HAVE_SHOUT
&
shout_output_plugin
,
#endif
...
...
src/output/plugins/AlsaOutputPlugin.cxx
View file @
594dfe57
...
...
@@ -1181,7 +1181,7 @@ try {
LockCaughtError
();
}
const
struct
AudioOutputPlugin
alsa_output_plugin
=
{
const
expr
struct
AudioOutputPlugin
alsa_output_plugin
=
{
"alsa"
,
alsa_test_default_device
,
&
AlsaOutput
::
Create
,
...
...
src/output/plugins/PulseOutputPlugin.cxx
View file @
594dfe57
...
...
@@ -913,7 +913,7 @@ pulse_output_test_default_device()
return
PulseOutput
::
TestDefaultDevice
();
}
const
struct
AudioOutputPlugin
pulse_output_plugin
=
{
const
expr
struct
AudioOutputPlugin
pulse_output_plugin
=
{
"pulse"
,
pulse_output_test_default_device
,
PulseOutput
::
Create
,
...
...
src/playlist/PlaylistRegistry.cxx
View file @
594dfe57
...
...
@@ -43,7 +43,7 @@
#include <cassert>
#include <iterator>
const
PlaylistPlugin
*
const
playlist_plugins
[]
=
{
const
expr
const
PlaylistPlugin
*
playlist_plugins
[]
=
{
&
extm3u_playlist_plugin
,
&
m3u_playlist_plugin
,
&
pls_playlist_plugin
,
...
...
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
View file @
594dfe57
...
...
@@ -147,7 +147,7 @@ static const char *const extm3u_mime_types[] = {
nullptr
};
const
PlaylistPlugin
extm3u_playlist_plugin
=
const
expr
PlaylistPlugin
extm3u_playlist_plugin
=
PlaylistPlugin
(
"extm3u"
,
extm3u_open_stream
)
.
WithSuffixes
(
extm3u_suffixes
)
.
WithMimeTypes
(
extm3u_mime_types
);
src/storage/Registry.cxx
View file @
594dfe57
...
...
@@ -29,7 +29,7 @@
#include <string.h>
const
StoragePlugin
*
const
storage_plugins
[]
=
{
const
expr
const
StoragePlugin
*
storage_plugins
[]
=
{
&
local_storage_plugin
,
#ifdef ENABLE_SMBCLIENT
&
smbclient_storage_plugin
,
...
...
src/storage/plugins/LocalStorage.cxx
View file @
594dfe57
...
...
@@ -170,7 +170,7 @@ CreateLocalStorage(Path base_fs)
return
std
::
make_unique
<
LocalStorage
>
(
base_fs
);
}
const
StoragePlugin
local_storage_plugin
=
{
const
expr
StoragePlugin
local_storage_plugin
=
{
"local"
,
nullptr
,
};
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