diff options
author | Max Kellermann <max@duempel.org> | 2015-10-20 12:10:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-20 12:10:42 +0200 |
commit | fc2154ee9278ba7e9ccdc82a210806c1d1279150 (patch) | |
tree | be8571a609e5926c93e0ccd65618332ba00945e4 /src/DetachedSong.hxx | |
parent | 76f85e6f7bea6f286389caf96835f2cd61d0961b (diff) |
DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
Diffstat (limited to 'src/DetachedSong.hxx')
-rw-r--r-- | src/DetachedSong.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index c3d9f6289..844283dcf 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -32,6 +32,7 @@ struct LightSong; class Storage; +class Path; class DetachedSong { friend DetachedSong DatabaseDetachSong(const Storage &db, @@ -220,6 +221,11 @@ public: * @return true on success */ bool Update(); + + /** + * Load #tag and #mtime from a local file. + */ + bool LoadFile(Path path); }; #endif |