Skip to content

Commit bc25957

Browse files
committed
Fixed std::exception catch type.
1 parent 7b02511 commit bc25957

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OpenTESArena/src/UI/UiLibrary.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ namespace
392392
*outValue = std::stoi(str, &index);
393393
return index == str.size();
394394
}
395-
catch (std::exception)
395+
catch (const std::exception&)
396396
{
397397
DebugLogErrorFormat("Couldn't parse \"%s\" as an integer.", str.c_str());
398398
return false;
@@ -407,7 +407,7 @@ namespace
407407
*outValue = std::stod(str, &index);
408408
return index == str.size();
409409
}
410-
catch (std::exception)
410+
catch (const std::exception&)
411411
{
412412
DebugLogErrorFormat("Couldn't parse \"%s\" as a double.", str.c_str());
413413
return false;

0 commit comments

Comments
 (0)