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
3ada4640
Commit
3ada4640
authored
Feb 22, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/simple: use C++11 initializer
parent
d5983dd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
SimpleDatabasePlugin.cxx
src/db/plugins/simple/SimpleDatabasePlugin.cxx
+1
-2
SimpleDatabasePlugin.hxx
src/db/plugins/simple/SimpleDatabasePlugin.hxx
+1
-1
No files found.
src/db/plugins/simple/SimpleDatabasePlugin.cxx
View file @
3ada4640
...
@@ -60,8 +60,7 @@ inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block)
...
@@ -60,8 +60,7 @@ inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block)
#ifdef ENABLE_ZLIB
#ifdef ENABLE_ZLIB
compress
(
block
.
GetBlockValue
(
"compress"
,
true
)),
compress
(
block
.
GetBlockValue
(
"compress"
,
true
)),
#endif
#endif
cache_path
(
block
.
GetPath
(
"cache_directory"
)),
cache_path
(
block
.
GetPath
(
"cache_directory"
))
prefixed_light_song
(
nullptr
)
{
{
if
(
path
.
IsNull
())
if
(
path
.
IsNull
())
throw
std
::
runtime_error
(
"No
\"
path
\"
parameter specified"
);
throw
std
::
runtime_error
(
"No
\"
path
\"
parameter specified"
);
...
...
src/db/plugins/simple/SimpleDatabasePlugin.hxx
View file @
3ada4640
...
@@ -58,7 +58,7 @@ class SimpleDatabase : public Database {
...
@@ -58,7 +58,7 @@ class SimpleDatabase : public Database {
* A buffer for GetSong() when prefixing the #LightSong
* A buffer for GetSong() when prefixing the #LightSong
* instance from a mounted #Database.
* instance from a mounted #Database.
*/
*/
mutable
PrefixedLightSong
*
prefixed_light_song
;
mutable
PrefixedLightSong
*
prefixed_light_song
=
nullptr
;
/**
/**
* A buffer for GetSong().
* A buffer for GetSong().
...
...
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