From 6a1f5667f95f99c4f4457f370abb10172fa7751e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Apr 2016 22:27:15 +0200 Subject: util/FormatString: return AllocatedString --- src/decoder/plugins/SidplayDecoderPlugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/decoder/plugins/SidplayDecoderPlugin.cxx') diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx index 7d6ccff89..50c6ec4c6 100644 --- a/src/decoder/plugins/SidplayDecoderPlugin.cxx +++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx @@ -24,6 +24,7 @@ #include "fs/Path.hxx" #include "fs/AllocatedPath.hxx" #include "util/FormatString.hxx" +#include "util/AllocatedString.hxx" #include "util/Domain.hxx" #include "util/Error.hxx" #include "system/ByteOrder.hxx" @@ -352,7 +353,7 @@ sidplay_container_scan(Path path_fs, const unsigned int tnum) /* Construct container/tune path names, eg. Delta.sid/tune_001.sid */ if(tnum<=info.songs) { - return FormatNew(SUBTUNE_PREFIX "%03u.sid", tnum); + return FormatString(SUBTUNE_PREFIX "%03u.sid", tnum).Steal(); } else return nullptr; } -- cgit v1.2.3