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 29
29
#include < functional>
30
30
#include < utility>
31
31
32
+ #include " harness_export.h"
33
+
32
34
namespace mysql_harness {
33
35
34
- class ScopedCallback {
36
+ class HARNESS_EXPORT ScopedCallback {
35
37
public:
36
38
explicit ScopedCallback (std::function<void ()> c) noexcept
37
39
: callback_{std::move (c)} {}
Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ class Pool {
92
92
T item = m_item_factory (m_created_items);
93
93
increase_active_items ();
94
94
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
97
98
return {};
98
99
}
99
100
}
You can’t perform that action at this time.
0 commit comments