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
7fe49cf2
Commit
7fe49cf2
authored
Mar 17, 2020
by
Rosen Penev
Committed by
Max Kellermann
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] use default member init
Found with modernize-use-default-member-init Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
d2115e90
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
16 deletions
+13
-16
Count.cxx
src/db/Count.cxx
+2
-2
SimpleDatabasePlugin.cxx
src/db/plugins/simple/SimpleDatabasePlugin.cxx
+2
-2
StandardDirectory.cxx
src/fs/StandardDirectory.cxx
+2
-2
AsxPlaylistPlugin.cxx
src/playlist/plugins/AsxPlaylistPlugin.cxx
+2
-3
PlsPlaylistPlugin.cxx
src/playlist/plugins/PlsPlaylistPlugin.cxx
+2
-2
RssPlaylistPlugin.cxx
src/playlist/plugins/RssPlaylistPlugin.cxx
+2
-3
Tag.cxx
src/tag/Tag.cxx
+1
-2
No files found.
src/db/Count.cxx
View file @
7fe49cf2
...
...
@@ -31,11 +31,11 @@
#include <map>
struct
SearchStats
{
unsigned
n_songs
;
unsigned
n_songs
{
0
}
;
std
::
chrono
::
duration
<
std
::
uint64_t
,
SongTime
::
period
>
total_duration
;
constexpr
SearchStats
()
:
n_songs
(
0
),
total_duration
(
0
)
{}
:
total_duration
(
0
)
{}
};
class
TagCountMap
:
public
std
::
map
<
std
::
string
,
SearchStats
>
{
...
...
src/db/plugins/simple/SimpleDatabasePlugin.cxx
View file @
7fe49cf2
...
...
@@ -79,8 +79,8 @@ inline SimpleDatabase::SimpleDatabase(AllocatedPath &&_path,
#ifdef ENABLE_ZLIB
compress
(
_compress
),
#endif
cache_path
(
nullptr
)
,
prefixed_light_song
(
nullptr
)
{
cache_path
(
nullptr
)
{
}
DatabasePtr
...
...
src/fs/StandardDirectory.cxx
View file @
7fe49cf2
...
...
@@ -56,9 +56,9 @@ class PasswdEntry
passwd
pw
;
#endif
passwd
*
result
;
passwd
*
result
{
nullptr
}
;
public
:
PasswdEntry
()
:
result
(
nullptr
)
{
}
PasswdEntry
()
=
default
;
bool
ReadByName
(
const
char
*
name
)
{
#ifdef HAVE_GETPWNAM_R
...
...
src/playlist/plugins/AsxPlaylistPlugin.cxx
View file @
7fe49cf2
...
...
@@ -40,7 +40,7 @@ struct AsxParser {
*/
enum
{
ROOT
,
ENTRY
,
}
state
;
}
state
{
ROOT
}
;
/**
* The current tag within the "entry" element. This is only
...
...
@@ -56,8 +56,7 @@ struct AsxParser {
TagBuilder
tag_builder
;
AsxParser
()
:
state
(
ROOT
)
{}
AsxParser
()
=
default
;
};
...
...
src/playlist/plugins/PlsPlaylistPlugin.cxx
View file @
7fe49cf2
...
...
@@ -57,9 +57,9 @@ ParsePls(TextInputStream &is, std::forward_list<DetachedSong> &songs)
struct
Entry
{
std
::
string
file
,
title
;
int
length
;
int
length
{
-
1
}
;
Entry
()
:
length
(
-
1
)
{}
Entry
()
=
default
;
};
static
constexpr
unsigned
MAX_ENTRIES
=
65536
;
...
...
src/playlist/plugins/RssPlaylistPlugin.cxx
View file @
7fe49cf2
...
...
@@ -40,7 +40,7 @@ struct RssParser {
*/
enum
{
ROOT
,
ITEM
,
}
state
;
}
state
{
ROOT
}
;
/**
* The current tag within the "entry" element. This is only
...
...
@@ -57,8 +57,7 @@ struct RssParser {
TagBuilder
tag_builder
;
RssParser
()
:
state
(
ROOT
)
{}
RssParser
()
=
default
;
};
static
void
XMLCALL
...
...
src/tag/Tag.cxx
View file @
7fe49cf2
...
...
@@ -42,8 +42,7 @@ Tag::Clear() noexcept
Tag
::
Tag
(
const
Tag
&
other
)
noexcept
:
duration
(
other
.
duration
),
has_playlist
(
other
.
has_playlist
),
num_items
(
other
.
num_items
),
items
(
nullptr
)
num_items
(
other
.
num_items
)
{
if
(
num_items
>
0
)
{
items
=
new
TagItem
*
[
num_items
];
...
...
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