mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
refactor: Fix bugprone-string-constructor warning
This commit is contained in:
@@ -2,6 +2,7 @@ Checks: '
|
|||||||
-*,
|
-*,
|
||||||
bitcoin-*,
|
bitcoin-*,
|
||||||
bugprone-argument-comment,
|
bugprone-argument-comment,
|
||||||
|
bugprone-string-constructor,
|
||||||
bugprone-use-after-move,
|
bugprone-use-after-move,
|
||||||
bugprone-lambda-function-name,
|
bugprone-lambda-function-name,
|
||||||
misc-unused-using-decls,
|
misc-unused-using-decls,
|
||||||
|
|||||||
@@ -129,9 +129,9 @@ bool IsSQLiteFile(const fs::path& path)
|
|||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
// Check the magic, see https://sqlite.org/fileformat2.html
|
// Check the magic, see https://sqlite.org/fileformat.html
|
||||||
std::string magic_str(magic, 16);
|
std::string magic_str(magic, 16);
|
||||||
if (magic_str != std::string("SQLite format 3", 16)) {
|
if (magic_str != std::string{"SQLite format 3\000", 16}) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user