mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
Catch exception by reference to fix -Wcatch-value warning
This commit is contained in:
parent
d011332616
commit
f3b61c70ba
@ -37,7 +37,7 @@ public:
|
|||||||
db_name_ = db_name;
|
db_name_ = db_name;
|
||||||
coll_name_ = collection_name;
|
coll_name_ = collection_name;
|
||||||
}
|
}
|
||||||
catch (const std::exception)
|
catch (const std::exception&)
|
||||||
{
|
{
|
||||||
throw spdlog_ex("Error opening database");
|
throw spdlog_ex("Error opening database");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user