DetachedSong: add method Update()

Don't create an intermediate Song instance when all we want is a
DetachedSong.
This commit is contained in:
Max Kellermann
2014-01-15 12:05:44 +01:00
parent df80deb070
commit 9fb82f9687
5 changed files with 55 additions and 15 deletions

View File

@@ -179,6 +179,13 @@ public:
gcc_pure
double GetDuration() const;
/**
* Update the #tag and #mtime.
*
* @return true on success
*/
bool Update();
};
#endif