mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Fix compiler warnings (-Wcatch-value=)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
parent
ea81112c29
commit
ac25e6c982
@ -446,7 +446,7 @@ void ObjectTest::onRun() {
|
||||
|
||||
try{
|
||||
dto["type"] = oatpp::Int32(32);
|
||||
} catch(std::runtime_error e) {
|
||||
} catch(std::runtime_error const& e) {
|
||||
OATPP_LOGD(TAG, "error='%s'", e.what());
|
||||
thrown = true;
|
||||
}
|
||||
@ -464,7 +464,7 @@ void ObjectTest::onRun() {
|
||||
|
||||
try{
|
||||
dto["non-existing"];
|
||||
} catch(std::out_of_range e) {
|
||||
} catch(std::out_of_range const& e) {
|
||||
OATPP_LOGD(TAG, "error='%s'", e.what());
|
||||
thrown = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user