File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
harness/include/mysql/harness Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2929#include < functional>
3030#include < utility>
3131
32+ #include " harness_export.h"
33+
3234namespace mysql_harness {
3335
34- class ScopedCallback {
36+ class HARNESS_EXPORT ScopedCallback {
3537 public:
3638 explicit ScopedCallback (std::function<void ()> c) noexcept
3739 : callback_{std::move (c)} {}
Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ class Pool {
9292 T item = m_item_factory (m_created_items);
9393 increase_active_items ();
9494 return item;
95- } catch (const std::runtime_error &err) {
96- // An initialization failure would raise this exception
95+ } catch (const std::runtime_error &) {
96+ // An initialization failure would raise this exception, no action is
97+ // needed
9798 return {};
9899 }
99100 }
You can’t perform that action at this time.
0 commit comments