From a6ca65c0509a5bcfef81b17270699dd4a822fd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 14 Mar 2022 17:51:21 +0100 Subject: [PATCH] imageconverter: remove one unneeded use of Utility::String. The others will go away with the de-stl-stringification of PluginManager. --- src/Magnum/Trade/imageconverter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Trade/imageconverter.cpp b/src/Magnum/Trade/imageconverter.cpp index 76ef2b2a8..e4d0ea686 100644 --- a/src/Magnum/Trade/imageconverter.cpp +++ b/src/Magnum/Trade/imageconverter.cpp @@ -195,6 +195,7 @@ magnum-imageconverter cube-mips.exr --layer 2 --level 1 +x-128.exr } using namespace Magnum; +using namespace Containers::Literals; namespace { @@ -387,7 +388,7 @@ key=true; configuration subgroups are delimited with /.)") given format */ /** @todo implement image slicing and then use `--slice "0 0 w h"` to specify non-rectangular size (and +x +y to specify padding?) */ - if(Utility::String::beginsWith(args.value("importer"), "raw:")) { + if(args.value("importer").hasPrefix("raw:"_s)) { if(dimensions != 2) { Error{} << "Raw data inputs can be only used for 2D images"; return 1;