mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +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;
|
||||
coll_name_ = collection_name;
|
||||
}
|
||||
catch (const std::exception)
|
||||
catch (const std::exception&)
|
||||
{
|
||||
throw spdlog_ex("Error opening database");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user