diff --git a/src/Database.cpp b/src/Database.cpp index 7102444..1606be5 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -16,6 +16,7 @@ #include #include +#include #ifndef SQLITE_DETERMINISTIC #define SQLITE_DETERMINISTIC 0x800 @@ -267,7 +268,7 @@ void Database::rekey(const std::string& aNewKey) const const bool Database::isUnencrypted(const std::string& aFilename) { if (aFilename.length() > 0) { - std::ifstream fileBuffer(aFilename, std::ios::in | std::ios::binary); + std::ifstream fileBuffer(aFilename.c_str(), std::ios::in | std::ios::binary); char header[16]; if (fileBuffer.is_open()) { fileBuffer.seekg(0, std::ios::beg);