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:
Timothy Rae 2017-03-31 12:12:46 +09:00
parent 6932525174
commit 4c339031f0
2 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@ public:
* *
* @throw SQLite::Exception in case of error * @throw SQLite::Exception in case of error
*/ */
static const bool isUnencrypted(const std::string& aFilename); static bool isUnencrypted(const std::string& aFilename);
private: private:
/// @{ Database must be non-copyable /// @{ Database must be non-copyable

View File

@ -265,7 +265,7 @@ void Database::rekey(const std::string& aNewKey) const
} }
// Test if a file contains an unencrypted database. // 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) { if (aFilename.length() > 0) {
std::ifstream fileBuffer(aFilename.c_str(), std::ios::in | std::ios::binary); std::ifstream fileBuffer(aFilename.c_str(), std::ios::in | std::ios::binary);