aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-20 12:10:42 +0200
committerMax Kellermann <max@duempel.org>2015-10-20 12:10:42 +0200
commitfc2154ee9278ba7e9ccdc82a210806c1d1279150 (patch)
treebe8571a609e5926c93e0ccd65618332ba00945e4 /test
parent76f85e6f7bea6f286389caf96835f2cd61d0961b (diff)
downloadmpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.gz
mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.tar.xz
mpd-fc2154ee9278ba7e9ccdc82a210806c1d1279150.zip
DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
Diffstat (limited to 'test')
-rw-r--r--test/test_translate_song.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx
index 9e627d170..b6be581e4 100644
--- a/test/test_translate_song.cxx
+++ b/test/test_translate_song.cxx
@@ -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;
}