From 0b4119ce125792d55da6a5bdd48d3cbfb4953e5a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:09:10 +1100 Subject: Fix possible Unicode exception in Directives parsing --- source/core/StarImageProcessing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarImageProcessing.cpp') diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index f3a3108..a56cedc 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -230,7 +230,7 @@ ImageOperation imageOperationFromString(StringView string) { bits.emplace_back(split); }); - String type = bits.at(0); + StringView const& type = bits.at(0); if (type == "hueshift") { return HueShiftImageOperation::hueShiftDegrees(lexicalCast(bits.at(1))); -- cgit v1.2.3