summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-mock.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-03-28 17:55:16 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-03-28 17:55:16 +0000
commite5c210fcbddcbb73ca387cf0eb3c5a6f91b2f4a6 (patch)
tree4b36f68e3cfc5b8b258a7958fd302a19802912b3 /libodbcpp/odbc-mock.h
parentFixes for tidy (diff)
downloadlibdbpp-odbc-e5c210fcbddcbb73ca387cf0eb3c5a6f91b2f4a6.tar.bz2
libdbpp-odbc-e5c210fcbddcbb73ca387cf0eb3c5a6f91b2f4a6.tar.xz
libdbpp-odbc-e5c210fcbddcbb73ca387cf0eb3c5a6f91b2f4a6.zip
Fixes for tidylibdbpp-odbc-1.4.3
Diffstat (limited to 'libodbcpp/odbc-mock.h')
-rw-r--r--libodbcpp/odbc-mock.h7
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;
};
}