diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:56:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:56:00 +0000 |
commit | f571f6b2bf1370b0757c29162988a40e02a82f91 (patch) | |
tree | df4662e44ad3bf79a6d829f22a4a4fbc78c5ade4 /libsqlitepp/sqlite-mock.h | |
parent | Refactor to ease testing (diff) | |
download | libdbpp-sqlite-f571f6b2bf1370b0757c29162988a40e02a82f91.tar.bz2 libdbpp-sqlite-f571f6b2bf1370b0757c29162988a40e02a82f91.tar.xz libdbpp-sqlite-f571f6b2bf1370b0757c29162988a40e02a82f91.zip |
Fixes for tidylibdbpp-sqlite-1.4.3
Diffstat (limited to 'libsqlitepp/sqlite-mock.h')
-rw-r--r-- | libsqlitepp/sqlite-mock.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsqlitepp/sqlite-mock.h b/libsqlitepp/sqlite-mock.h index cc182d4..45caef9 100644 --- a/libsqlitepp/sqlite-mock.h +++ b/libsqlitepp/sqlite-mock.h @@ -4,6 +4,7 @@ #include <mockDatabase.h> #include <filesystem> #include <visibility.h> +#include <c++11Helpers.h> namespace SQLite { @@ -11,13 +12,15 @@ class DLL_PUBLIC Mock : public DB::MockDatabase { public: Mock(const std::string & root, const std::string & name, const std::vector<std::filesystem::path> & ss); Mock(const std::string & name, const std::vector<std::filesystem::path> & ss); - ~Mock(); + ~Mock() override; + + SPECIAL_MEMBERS_MOVE_RO(Mock); protected: void DropDatabase() const override; void CreateNewDatabase() const override; - DB::ConnectionPtr openConnection() const override; + [[nodiscard]] DB::ConnectionPtr openConnection() const override; private: const std::filesystem::path testDbPath; |