Trying to gcc happy

This commit is contained in:
Jorrit Wronski 2016-12-23 14:06:36 +01:00
parent 823828fc9e
commit a7d5ea4c2b

View File

@ -16,6 +16,7 @@
#include <sqlite3.h> #include <sqlite3.h>
#include <fstream> #include <fstream>
#include <string>
#ifndef SQLITE_DETERMINISTIC #ifndef SQLITE_DETERMINISTIC
#define SQLITE_DETERMINISTIC 0x800 #define SQLITE_DETERMINISTIC 0x800
@ -267,7 +268,7 @@ void Database::rekey(const std::string& aNewKey) const
const bool Database::isUnencrypted(const std::string& aFilename) const bool Database::isUnencrypted(const std::string& aFilename)
{ {
if (aFilename.length() > 0) { 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]; char header[16];
if (fileBuffer.is_open()) { if (fileBuffer.is_open()) {
fileBuffer.seekg(0, std::ios::beg); fileBuffer.seekg(0, std::ios::beg);