mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
Don't throw pointers (MFC habit).
This commit is contained in:
parent
6f004d86a4
commit
4b3fbdd570
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user