mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Trying to gcc happy
This commit is contained in:
parent
823828fc9e
commit
a7d5ea4c2b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user