diff --git a/include/SQLiteCpp/Database.h b/include/SQLiteCpp/Database.h index 0129809..d3184c0 100644 --- a/include/SQLiteCpp/Database.h +++ b/include/SQLiteCpp/Database.h @@ -412,7 +412,7 @@ public: * * @throw SQLite::Exception in case of error */ - static const bool isUnencrypted(const std::string& aFilename); + static bool isUnencrypted(const std::string& aFilename); private: /// @{ Database must be non-copyable diff --git a/src/Database.cpp b/src/Database.cpp index cfa5447..a63b3ff 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -265,7 +265,7 @@ void Database::rekey(const std::string& aNewKey) const } // Test if a file contains an unencrypted database. -const bool Database::isUnencrypted(const std::string& aFilename) +bool Database::isUnencrypted(const std::string& aFilename) { if (aFilename.length() > 0) { std::ifstream fileBuffer(aFilename.c_str(), std::ios::in | std::ios::binary);