summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-mock.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 13:30:22 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 13:30:22 +0000
commitef16da27477a2a234cab8aed1e072555d6bb410e (patch)
tree540a3ffaa7ade15ef4beca5a786bb9270721ed51 /libsqlitepp/sqlite-mock.cpp
parentBring up-to-date with libdbpp. (diff)
downloadlibdbpp-sqlite-ef16da27477a2a234cab8aed1e072555d6bb410e.tar.bz2
libdbpp-sqlite-ef16da27477a2a234cab8aed1e072555d6bb410e.tar.xz
libdbpp-sqlite-ef16da27477a2a234cab8aed1e072555d6bb410e.zip
Bring inline with clang-tidy checks
Diffstat (limited to 'libsqlitepp/sqlite-mock.cpp')
-rw-r--r--libsqlitepp/sqlite-mock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsqlitepp/sqlite-mock.cpp b/libsqlitepp/sqlite-mock.cpp
index 510b209..4a96e35 100644
--- a/libsqlitepp/sqlite-mock.cpp
+++ b/libsqlitepp/sqlite-mock.cpp
@@ -7,9 +7,9 @@ NAMEDFACTORY("sqlite", SQLite::Mock, DB::MockDatabaseFactory);
namespace SQLite {
Mock::Mock(const std::string & root, const std::string & name, const std::vector<std::filesystem::path> & ss) :
- testDbPath(std::filesystem::path(root) / name / boost::lexical_cast<std::string>(getpid()) / boost::lexical_cast<std::string>(++DB::MockDatabase::mocked))
+ testDbPath(std::filesystem::path(root) / name / std::to_string(getpid()) / std::to_string(++DB::MockDatabase::mocked))
{
- CreateNewDatabase();
+ Mock::CreateNewDatabase();
PlaySchemaScripts(ss);
}
@@ -26,7 +26,7 @@ Mock::openConnection() const
Mock::~Mock()
{
- DropDatabase();
+ Mock::DropDatabase();
}
void Mock::DropDatabase() const
@@ -37,7 +37,7 @@ void Mock::DropDatabase() const
void Mock::CreateNewDatabase() const
{
std::filesystem::create_directories(testDbPath.parent_path());
- openConnection(); // Triggers file creation
+ Mock::openConnection(); // Triggers file creation
}
}