From ef16da27477a2a234cab8aed1e072555d6bb410e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 13:30:22 +0000 Subject: Bring inline with clang-tidy checks --- libsqlitepp/sqlite-mock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libsqlitepp/sqlite-mock.cpp') 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 & ss) : - testDbPath(std::filesystem::path(root) / name / boost::lexical_cast(getpid()) / boost::lexical_cast(++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 } } -- cgit v1.2.3