From 4b3fbdd5706d662b040a4492974e62ef5f513ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Sat, 9 May 2015 13:25:36 +0200 Subject: [PATCH] Don't throw pointers (MFC habit). --- PowerEditor/src/MISC/Common/Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/MISC/Common/Common.cpp b/PowerEditor/src/MISC/Common/Common.cpp index 281677f28..0791305ec 100644 --- a/PowerEditor/src/MISC/Common/Common.cpp +++ b/PowerEditor/src/MISC/Common/Common.cpp @@ -771,7 +771,7 @@ int stoiStrict(const generic_string &input) // Check for other characters which are not allowed. if (input.find_first_not_of(TEXT("-0123456789")) != std::string::npos) { - throw new std::invalid_argument("Invalid character found."); + throw std::invalid_argument("Invalid character found."); } return std::stoi(input);