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
753a2aa4
Commit
753a2aa4
authored
Oct 18, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistSave: move code to playlist_print_path()
parent
10990a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
PlaylistSave.cxx
src/PlaylistSave.cxx
+8
-2
No files found.
src/PlaylistSave.cxx
View file @
753a2aa4
...
...
@@ -35,6 +35,12 @@
#include <stdexcept>
static
void
playlist_print_path
(
BufferedOutputStream
&
os
,
const
Path
path
)
{
os
.
Format
(
"%s
\n
"
,
NarrowPath
(
path
).
c_str
());
}
void
playlist_print_song
(
BufferedOutputStream
&
os
,
const
DetachedSong
&
song
)
{
...
...
@@ -44,7 +50,7 @@ playlist_print_song(BufferedOutputStream &os, const DetachedSong &song)
try
{
const
auto
uri_fs
=
AllocatedPath
::
FromUTF8Throw
(
uri_utf8
);
os
.
Format
(
"%s
\n
"
,
NarrowPath
(
uri_fs
).
c_str
()
);
playlist_print_path
(
os
,
uri_fs
);
}
catch
(
const
std
::
runtime_error
&
)
{
}
}
...
...
@@ -63,7 +69,7 @@ playlist_print_uri(BufferedOutputStream &os, const char *uri)
AllocatedPath
::
FromUTF8Throw
(
uri
);
if
(
!
path
.
IsNull
())
os
.
Format
(
"%s
\n
"
,
NarrowPath
(
path
).
c_str
()
);
playlist_print_path
(
os
,
path
);
}
catch
(
const
std
::
runtime_error
&
)
{
}
}
...
...
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