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
83488848
Commit
83488848
authored
Jan 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directory: initialise in default constructor
parent
f5a92d6c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
Directory.cxx
src/Directory.cxx
+9
-0
Directory.hxx
src/Directory.hxx
+1
-1
DumpPlaylist.cxx
test/DumpPlaylist.cxx
+1
-0
TestQueuePriority.cxx
test/TestQueuePriority.cxx
+1
-0
No files found.
src/Directory.cxx
View file @
83488848
...
...
@@ -51,6 +51,15 @@ Directory::Allocate(const char *path)
return
directory
;
}
Directory
::
Directory
()
{
INIT_LIST_HEAD
(
&
children
);
INIT_LIST_HEAD
(
&
songs
);
INIT_LIST_HEAD
(
&
playlists
);
path
[
0
]
=
0
;
}
Directory
::
Directory
(
const
char
*
_path
)
{
INIT_LIST_HEAD
(
&
children
);
...
...
src/Directory.hxx
View file @
83488848
...
...
@@ -100,7 +100,7 @@ public:
/**
* Default constructor, needed for #detached_root.
*/
Directory
()
=
default
;
Directory
();
~
Directory
();
/**
...
...
test/DumpPlaylist.cxx
View file @
83488848
...
...
@@ -38,6 +38,7 @@ extern "C" {
#include <unistd.h>
#include <stdlib.h>
Directory
::
Directory
()
{}
Directory
::~
Directory
()
{}
static
void
...
...
test/TestQueuePriority.cxx
View file @
83488848
...
...
@@ -7,6 +7,7 @@ extern "C" {
Directory
detached_root
;
Directory
::
Directory
()
{}
Directory
::~
Directory
()
{}
struct
song
*
...
...
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