mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: Use C++17 std::array where possible
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include <QSettings>
|
||||
#include <QTextDocument>
|
||||
|
||||
static const std::array<int, 9> confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} };
|
||||
static constexpr std::array confTargets{2, 4, 6, 12, 24, 48, 144, 504, 1008};
|
||||
int getConfTargetForIndex(int index) {
|
||||
if (index+1 > static_cast<int>(confTargets.size())) {
|
||||
return confTargets.back();
|
||||
|
||||
Reference in New Issue
Block a user