mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-02 01:11:35 +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:
@@ -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
|
||||
|
||||
@@ -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