From fc2154ee9278ba7e9ccdc82a210806c1d1279150 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Oct 2015 12:10:42 +0200 Subject: DetachedSong: move code from Update() to LoadFile() Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers. --- test/test_translate_song.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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; } -- cgit v1.2.3