summaryrefslogtreecommitdiff
path: root/src/SongLoader.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-08 10:02:08 +0100
committerMax Kellermann <max@musicpd.org>2017-02-08 10:02:08 +0100
commitf689e28958f6486fdf2a8add463e2f83e9920547 (patch)
tree8ccc828e7accac31840d375dedc62c73fe27d872 /src/SongLoader.hxx
parentd184231169687025200e189afe898d955fa095cb (diff)
SongLoader: return instance, not pointer
Diffstat (limited to 'src/SongLoader.hxx')
-rw-r--r--src/SongLoader.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SongLoader.hxx b/src/SongLoader.hxx
index 686a2978d..ffb337ab9 100644
--- a/src/SongLoader.hxx
+++ b/src/SongLoader.hxx
@@ -67,20 +67,20 @@ public:
}
#endif
- DetachedSong *LoadSong(const LocatedUri &uri) const;
+ DetachedSong LoadSong(const LocatedUri &uri) const;
/**
* Throws #std::runtime_error on error.
*/
gcc_nonnull_all
- DetachedSong *LoadSong(const char *uri_utf8) const;
+ DetachedSong LoadSong(const char *uri_utf8) const;
private:
gcc_nonnull_all
- DetachedSong *LoadFromDatabase(const char *uri) const;
+ DetachedSong LoadFromDatabase(const char *uri) const;
gcc_nonnull_all
- DetachedSong *LoadFile(const char *path_utf8, Path path_fs) const;
+ DetachedSong LoadFile(const char *path_utf8, Path path_fs) const;
};
#endif