aboutsummaryrefslogtreecommitdiff
path: root/src/tinyformat.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-31 11:50:10 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-01-31 11:50:10 +0000
commit96ee992ac3535848e2dc717bf284339badd40dcb (patch)
treee7405ed701334a1fcb99c72b5f0301725918f531 /src/tinyformat.h
parent357d750cab5221695d718e6d3e8ce63fa2b5ab3a (diff)
downloadbitcoin-96ee992ac3535848e2dc717bf284339badd40dcb.tar.xz
clang-tidy: Fix `modernize-use-default-member-init` in headers
See https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html
Diffstat (limited to 'src/tinyformat.h')
-rw-r--r--src/tinyformat.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tinyformat.h b/src/tinyformat.h
index 8eded00add..3ec385bc95 100644
--- a/src/tinyformat.h
+++ b/src/tinyformat.h
@@ -508,9 +508,6 @@ class FormatArg
{
public:
FormatArg()
- : m_value(nullptr),
- m_formatImpl(nullptr),
- m_toIntImpl(nullptr)
{ }
template<typename T>
@@ -549,10 +546,10 @@ class FormatArg
return convertToInt<T>::invoke(*static_cast<const T*>(value));
}
- const void* m_value;
+ const void* m_value{nullptr};
void (*m_formatImpl)(std::ostream& out, const char* fmtBegin,
- const char* fmtEnd, int ntrunc, const void* value);
- int (*m_toIntImpl)(const void* value);
+ const char* fmtEnd, int ntrunc, const void* value){nullptr};
+ int (*m_toIntImpl)(const void* value){nullptr};
};