Commit 53a13e8b authored by Max Kellermann's avatar Max Kellermann

DetachedSong: un-inline the destructor

Reduce bloat.
parent f3f5e2e1
...@@ -1235,6 +1235,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \ ...@@ -1235,6 +1235,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/PlaylistVector.cxx src/PlaylistDatabase.cxx \ src/PlaylistVector.cxx src/PlaylistDatabase.cxx \
src/DatabaseLock.cxx src/DatabaseSave.cxx \ src/DatabaseLock.cxx src/DatabaseSave.cxx \
src/Song.cxx src/SongSave.cxx src/SongSort.cxx \ src/Song.cxx src/SongSave.cxx src/SongSort.cxx \
src/DetachedSong.cxx \
src/TagSave.cxx \ src/TagSave.cxx \
src/SongFilter.cxx src/SongFilter.cxx
...@@ -1329,6 +1330,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \ ...@@ -1329,6 +1330,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
if HAVE_FLAC if HAVE_FLAC
test_dump_playlist_SOURCES += \ test_dump_playlist_SOURCES += \
src/ReplayGainInfo.cxx \ src/ReplayGainInfo.cxx \
src/DetachedSong.cxx \
src/decoder/FlacMetadata.cxx src/decoder/FlacMetadata.cxx
endif endif
...@@ -1645,6 +1647,7 @@ test_test_translate_song_LDADD = \ ...@@ -1645,6 +1647,7 @@ test_test_translate_song_LDADD = \
test_test_queue_priority_SOURCES = \ test_test_queue_priority_SOURCES = \
src/Queue.cxx \ src/Queue.cxx \
src/DetachedSong.cxx \
test/test_queue_priority.cxx test/test_queue_priority.cxx
test_test_queue_priority_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0 test_test_queue_priority_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_queue_priority_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations test_test_queue_priority_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
......
...@@ -30,6 +30,11 @@ DetachedSong::DetachedSong(const LightSong &other) ...@@ -30,6 +30,11 @@ DetachedSong::DetachedSong(const LightSong &other)
mtime(other.mtime), mtime(other.mtime),
start_ms(other.start_ms), end_ms(other.end_ms) {} start_ms(other.start_ms), end_ms(other.end_ms) {}
DetachedSong::~DetachedSong()
{
/* this destructor exists here just so it won't get inlined */
}
bool bool
DetachedSong::IsRemote() const DetachedSong::IsRemote() const
{ {
......
...@@ -97,6 +97,8 @@ public: ...@@ -97,6 +97,8 @@ public:
DetachedSong(DetachedSong &&) = default; DetachedSong(DetachedSong &&) = default;
~DetachedSong();
gcc_pure gcc_pure
const char *GetURI() const { const char *GetURI() const {
return uri.c_str(); return uri.c_str();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment