From 4dc7d1c0cdb1334ddf3e12014d42863206f85f0e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Nov 2016 11:23:54 +0100 Subject: [PATCH] decoder/Thread: use AllocatedPath::FromUTF8Throw() --- src/decoder/DecoderThread.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/decoder/DecoderThread.cxx b/src/decoder/DecoderThread.cxx index 1e771940b..acff3f0a0 100644 --- a/src/decoder/DecoderThread.cxx +++ b/src/decoder/DecoderThread.cxx @@ -429,13 +429,7 @@ try { Path path_fs = Path::Null(); AllocatedPath path_buffer = AllocatedPath::Null(); if (PathTraitsUTF8::IsAbsolute(uri_utf8)) { - Error error; - path_buffer = AllocatedPath::FromUTF8(uri_utf8, error); - if (path_buffer.IsNull()) { - dc.CommandFinishedLocked(); - throw std::move(error); - } - + path_buffer = AllocatedPath::FromUTF8Throw(uri_utf8); path_fs = path_buffer; }