diff options
-rw-r--r-- | libsqlitepp/sqlite-mock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <buffer.h> +#include <boost/lexical_cast.hpp> #include <boost/filesystem/operations.hpp> namespace SQLite { Mock::Mock(const std::string & name, const std::vector<boost::filesystem::path> & 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<std::string>(getpid()) / boost::lexical_cast<std::string>(++DB::MockDatabase::mocked)) { CreateNewDatabase(); PlaySchemaScripts(ss); |