diff options
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/odbc-mock.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libodbcpp/odbc-mock.h b/libodbcpp/odbc-mock.h index 8fc2974..8371cf6 100644 --- a/libodbcpp/odbc-mock.h +++ b/libodbcpp/odbc-mock.h @@ -4,13 +4,16 @@ #include <mockDatabase.h> #include <filesystem> #include <visibility.h> +#include <c++11Helpers.h> namespace ODBC { class DLL_PUBLIC Mock : public DB::MockServerDatabase { public: Mock(const std::string & base, const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss); - ~Mock(); + ~Mock() override; + + SPECIAL_MEMBERS_MOVE_RO(Mock); const std::string base; @@ -18,7 +21,7 @@ class DLL_PUBLIC Mock : public DB::MockServerDatabase { void DropDatabase() const override; private: - DB::ConnectionPtr openConnection() const override; + [[nodiscard]] DB::ConnectionPtr openConnection() const override; }; } |