From 124467c6e13300a154ef8738f5308ccd2ee553e6 Mon Sep 17 00:00:00 2001 From: MrSimbax Date: Mon, 6 Jul 2020 14:14:24 +0200 Subject: [PATCH] Fix 'naked new' warning --- src/common/stringutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/stringutils.cpp b/src/common/stringutils.cpp index 5e7afd1e..acad1dd9 100644 --- a/src/common/stringutils.cpp +++ b/src/common/stringutils.cpp @@ -184,7 +184,7 @@ int StrUtils::Utf8CharSizeAt(const std::string &str, unsigned int pos) // Invalid char - unexpected continuation byte if((c & 0b11000000) == 0b10000000) - throw new std::invalid_argument("Unexpected UTF-8 continuation byte"); + throw std::invalid_argument("Unexpected UTF-8 continuation byte"); return 1; }