From 53a13e8bc6da1f7a795a8d585974d917ffcb600c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jan 2014 21:21:27 +0100 Subject: DetachedSong: un-inline the destructor Reduce bloat. --- src/DetachedSong.cxx | 5 +++++ src/DetachedSong.hxx | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/DetachedSong.cxx b/src/DetachedSong.cxx index 6a54bc8ad..8882d2863 100644 --- a/src/DetachedSong.cxx +++ b/src/DetachedSong.cxx @@ -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 { diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index b2f5196ff..c01f32ea5 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -97,6 +97,8 @@ public: DetachedSong(DetachedSong &&) = default; + ~DetachedSong(); + gcc_pure const char *GetURI() const { return uri.c_str(); -- cgit v1.2.3