aboutsummaryrefslogtreecommitdiff
path: root/src/tinyformat.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-12-15 20:57:25 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-12-15 20:58:19 +0000
commitadb7dba9de95c166103ac7eaf97d5bd83dc19605 (patch)
tree77b7e43d9a91c270c68541ea65ba09fa92600d2c /src/tinyformat.h
parentba47a4ba97e924fb628849754c78d9cd10841c31 (diff)
downloadbitcoin-adb7dba9de95c166103ac7eaf97d5bd83dc19605.tar.xz
clang-tidy: Fix `modernize-use-nullptr` in headers
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-nullptr.html
Diffstat (limited to 'src/tinyformat.h')
-rw-r--r--src/tinyformat.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tinyformat.h b/src/tinyformat.h
index bedaa14007..8eded00add 100644
--- a/src/tinyformat.h
+++ b/src/tinyformat.h
@@ -508,9 +508,9 @@ class FormatArg
{
public:
FormatArg()
- : m_value(NULL),
- m_formatImpl(NULL),
- m_toIntImpl(NULL)
+ : m_value(nullptr),
+ m_formatImpl(nullptr),
+ m_toIntImpl(nullptr)
{ }
template<typename T>
@@ -1005,7 +1005,8 @@ class FormatListN : public FormatList
// Special 0-arg version - MSVC says zero-sized C array in struct is nonstandard
template<> class FormatListN<0> : public FormatList
{
- public: FormatListN() : FormatList(0, 0) {}
+public:
+ FormatListN() : FormatList(nullptr, 0) {}
};
} // namespace detail