mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
refactor: init vectors via std::{begin,end} to avoid pointer arithmetic
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
#include <protocol.h>
|
||||
|
||||
#include <util/strencodings.h>
|
||||
#include <util/system.h>
|
||||
|
||||
static std::atomic<bool> g_initial_block_download_completed(false);
|
||||
@@ -86,7 +85,7 @@ const static std::string allNetMessageTypes[] = {
|
||||
NetMsgType::CFCHECKPT,
|
||||
NetMsgType::WTXIDRELAY,
|
||||
};
|
||||
const static std::vector<std::string> allNetMessageTypesVec(allNetMessageTypes, allNetMessageTypes+ARRAYLEN(allNetMessageTypes));
|
||||
const static std::vector<std::string> allNetMessageTypesVec(std::begin(allNetMessageTypes), std::end(allNetMessageTypes));
|
||||
|
||||
CMessageHeader::CMessageHeader()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user