mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
scripted-diff: Use inline constexpr over plain constexpr
Both are identical since C++17 and this refactor shouldn't change any behavior. The benefits are consistency and to be explicit, to avoid confusion with the C++11/14 constexpr. Co-Authored-By: l0rinc <pap.lorinc@gmail.com> -BEGIN VERIFY SCRIPT- sed -i --regexp-extended 's/^constexpr \S+ \w+(\[\])? ?[={]/inline &/' $( \ git grep -l '^constexpr ' -- \ '*.h' \ ':(exclude)src/minisketch' \ ) -END VERIFY SCRIPT-
This commit is contained in:
@@ -125,7 +125,7 @@ std::optional<uint256> ReadSnapshotBaseBlockhash(fs::path chaindir)
|
||||
|
||||
//! Suffix appended to the chainstate (leveldb) dir when created based upon
|
||||
//! a snapshot.
|
||||
constexpr std::string_view SNAPSHOT_CHAINSTATE_SUFFIX = "_snapshot";
|
||||
inline constexpr std::string_view SNAPSHOT_CHAINSTATE_SUFFIX = "_snapshot";
|
||||
|
||||
|
||||
//! Return a path to the snapshot-based chainstate dir, if one exists.
|
||||
|
||||
Reference in New Issue
Block a user