From 840d64dbed5bf6d8f6b5bd69c1933beaa8b7ff1a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 1 May 2024 03:35:22 +1000 Subject: [PATCH] Update StarImageProcessing.cpp --- source/core/StarImageProcessing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index aa29d2a..b803470 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -342,11 +342,11 @@ ImageOperation imageOperationFromString(StringView string) { return NullImageOperation(); } } catch (OutOfRangeException const& e) { - return ErrorImageOperation{e.what()}; + return ErrorImageOperation{std::string(e.what())}; } catch (BadLexicalCast const& e) { - return ErrorImageOperation{e.what()}; + return ErrorImageOperation{std::string(e.what())}; } catch (StarException const& e) { - return ErrorImageOperation{e.what()}; + return ErrorImageOperation{std::string(e.what())}; } }