summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-mock.h')
-rw-r--r--libmysqlpp/my-mock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmysqlpp/my-mock.h b/libmysqlpp/my-mock.h
index 60aa124..6be9750 100644
--- a/libmysqlpp/my-mock.h
+++ b/libmysqlpp/my-mock.h
@@ -4,16 +4,19 @@
#include <mockDatabase.h>
#include <filesystem>
#include <visibility.h>
+#include <c++11Helpers.h>
namespace MySQL {
class DLL_PUBLIC Mock : public DB::MockServerDatabase {
public:
Mock(const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss);
- ~Mock();
+ ~Mock() override;
+
+ SPECIAL_MEMBERS_MOVE_RO(Mock);
private:
- DB::ConnectionPtr openConnection() const override;
+ [[nodiscard]] DB::ConnectionPtr openConnection() const override;
};
}