summaryrefslogtreecommitdiff
path: root/src/pubkey.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-02-05 22:13:09 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2020-02-05 22:13:09 +0100
commit69e4c826a34eb84c36bb07338a9a292a520f5970 (patch)
tree99d00a446b36fcdaf27dc9f1ddb5fc7e9edf5e3c /src/pubkey.h
parent495d2cb6b47b309070b31e0ef83fa5731a150a6d (diff)
Fix compilation with clang
Diffstat (limited to 'src/pubkey.h')
-rw-r--r--src/pubkey.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pubkey.h b/src/pubkey.h
index b14743d..607352d 100644
--- a/src/pubkey.h
+++ b/src/pubkey.h
@@ -106,10 +106,7 @@ optional<Signed<T>> Signed<T>::load(const Ref & ref)
if (sig.value()->verify(data.value().ref))
sigs.push_back(sig.value());
- return Signed {
- .data = data.value(),
- .sigs = sigs,
- };
+ return Signed(*data, sigs);
}
template<typename T>