Skip to content

Commit c507428

Browse files
committed
Style.
1 parent 081538c commit c507428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/bitcoin/system/impl/radix/base_16.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ constexpr uint8_t encode_octet(
9595

9696
constexpr std::string encode_base16(const data_slice& data) NOEXCEPT
9797
{
98-
std::string out;
98+
std::string out{};
9999
out.resize(data.size() * octet_width);
100100
auto digit = out.begin();
101101

@@ -111,7 +111,7 @@ constexpr std::string encode_base16(const data_slice& data) NOEXCEPT
111111
// std::string is constexpr
112112
constexpr std::string encode_hash(const data_slice& hash) NOEXCEPT
113113
{
114-
std::string out;
114+
std::string out{};
115115
out.resize(hash.size() * octet_width);
116116
auto digit = out.begin();
117117

@@ -215,7 +215,7 @@ constexpr std::string base16_string(const char(&string)[Size]) NOEXCEPT
215215
template <size_t Size, if_odd<Size>>
216216
data_chunk base16_chunk(const char(&string)[Size]) NOEXCEPT
217217
{
218-
data_chunk out;
218+
data_chunk out{};
219219
decode_base16(out, string);
220220
return out;
221221
}

0 commit comments

Comments
 (0)