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
53a13e8b
Commit
53a13e8b
authored
Jan 23, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DetachedSong: un-inline the destructor
Reduce bloat.
parent
f3f5e2e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
Makefile.am
Makefile.am
+3
-0
DetachedSong.cxx
src/DetachedSong.cxx
+5
-0
DetachedSong.hxx
src/DetachedSong.hxx
+2
-0
No files found.
Makefile.am
View file @
53a13e8b
...
...
@@ -1235,6 +1235,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/PlaylistVector.cxx src/PlaylistDatabase.cxx
\
src/DatabaseLock.cxx src/DatabaseSave.cxx
\
src/Song.cxx src/SongSave.cxx src/SongSort.cxx
\
src/DetachedSong.cxx
\
src/TagSave.cxx
\
src/SongFilter.cxx
...
...
@@ -1329,6 +1330,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
if
HAVE_FLAC
test_dump_playlist_SOURCES
+=
\
src/ReplayGainInfo.cxx
\
src/DetachedSong.cxx
\
src/decoder/FlacMetadata.cxx
endif
...
...
@@ -1645,6 +1647,7 @@ test_test_translate_song_LDADD = \
test_test_queue_priority_SOURCES
=
\
src/Queue.cxx
\
src/DetachedSong.cxx
\
test
/test_queue_priority.cxx
test_test_queue_priority_CPPFLAGS
=
$(AM_CPPFLAGS)
$(CPPUNIT_CFLAGS)
-DCPPUNIT_HAVE_RTTI
=
0
test_test_queue_priority_CXXFLAGS
=
$(AM_CXXFLAGS)
-Wno-error
=
deprecated-declarations
...
...
src/DetachedSong.cxx
View file @
53a13e8b
...
...
@@ -30,6 +30,11 @@ DetachedSong::DetachedSong(const LightSong &other)
mtime
(
other
.
mtime
),
start_ms
(
other
.
start_ms
),
end_ms
(
other
.
end_ms
)
{}
DetachedSong
::~
DetachedSong
()
{
/* this destructor exists here just so it won't get inlined */
}
bool
DetachedSong
::
IsRemote
()
const
{
...
...
src/DetachedSong.hxx
View file @
53a13e8b
...
...
@@ -97,6 +97,8 @@ public:
DetachedSong
(
DetachedSong
&&
)
=
default
;
~
DetachedSong
();
gcc_pure
const
char
*
GetURI
()
const
{
return
uri
.
c_str
();
...
...
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