mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-03 01:07:25 +00:00
Remove const from Database::isUnencrypted() return type
Compiling with gcc pedantic mode was leading to a warning: "type qualifiers ignored on function return type"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user