mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04: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:
parent
6932525174
commit
4c339031f0
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user