summaryrefslogtreecommitdiff
path: root/test/test_translate_song.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_translate_song.cxx')
-rw-r--r--test/test_translate_song.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx
index 374fd34a2..324a79d29 100644
--- a/test/test_translate_song.cxx
+++ b/test/test_translate_song.cxx
@@ -185,15 +185,15 @@ ToString(const DetachedSong &song)
result.push_back('|');
- if (song.GetStartMS() > 0) {
- sprintf(buffer, "%u", song.GetStartMS());
+ if (song.GetStartTime().IsPositive()) {
+ sprintf(buffer, "%u", song.GetStartTime().ToMS());
result.append(buffer);
}
result.push_back('-');
- if (song.GetEndMS() > 0) {
- sprintf(buffer, "%u", song.GetEndMS());
+ if (song.GetEndTime().IsPositive()) {
+ sprintf(buffer, "%u", song.GetEndTime().ToMS());
result.append(buffer);
}