From 785160ea39400cbfd9a3fe3d4eae11ea106b8d04 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Dec 2016 04:59:00 +0000 Subject: Do lots more work with compile time formatter instead runtime formatters --- libsqlitepp/sqlite-mock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsqlitepp/sqlite-mock.cpp') diff --git a/libsqlitepp/sqlite-mock.cpp b/libsqlitepp/sqlite-mock.cpp index 2f0958d..bcacbde 100644 --- a/libsqlitepp/sqlite-mock.cpp +++ b/libsqlitepp/sqlite-mock.cpp @@ -1,13 +1,13 @@ #include "sqlite-mock.h" #include "sqlite-connection.h" -#include +#include #include namespace SQLite { Mock::Mock(const std::string & name, const std::vector & ss) : MockDatabase(name), - testDbPath(boost::filesystem::path("/tmp") / "sqliteut" / stringbf("%d", getpid()) / stringbf("%d", ++DB::MockDatabase::mocked)) + testDbPath(boost::filesystem::path("/tmp") / "sqliteut" / boost::lexical_cast(getpid()) / boost::lexical_cast(++DB::MockDatabase::mocked)) { CreateNewDatabase(); PlaySchemaScripts(ss); -- cgit v1.2.3