DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
This commit is contained in:
@@ -121,9 +121,9 @@ DatabaseDetachSong(gcc_unused const Database &db,
|
||||
}
|
||||
|
||||
bool
|
||||
DetachedSong::Update()
|
||||
DetachedSong::LoadFile(Path path)
|
||||
{
|
||||
if (strcmp(GetURI(), uri1) == 0) {
|
||||
if (path.ToUTF8() == uri1) {
|
||||
SetTag(MakeTag1a());
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user