diff options
| author | practicalswift <[email protected]> | 2018-12-14 14:50:21 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-06-26 16:57:14 +0200 |
| commit | c4606b84329d760d7cee144bebe05807857edaae (patch) | |
| tree | b8abcff8c3b042e2782fc4b0bd6d2f3c68385a13 /src/index | |
| parent | Merge #15894: Remove duplicated "Error: " prefix in logs (diff) | |
| download | discoin-c4606b84329d760d7cee144bebe05807857edaae.tar.xz discoin-c4606b84329d760d7cee144bebe05807857edaae.zip | |
Add Travis check for single parameter constructors not marked "explicit"
Diffstat (limited to 'src/index')
| -rw-r--r-- | src/index/blockfilterindex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index/blockfilterindex.cpp b/src/index/blockfilterindex.cpp index 20f33baf2..c3ce8d7af 100644 --- a/src/index/blockfilterindex.cpp +++ b/src/index/blockfilterindex.cpp @@ -53,7 +53,7 @@ struct DBHeightKey { int height; DBHeightKey() : height(0) {} - DBHeightKey(int height_in) : height(height_in) {} + explicit DBHeightKey(int height_in) : height(height_in) {} template<typename Stream> void Serialize(Stream& s) const @@ -76,7 +76,7 @@ struct DBHeightKey { struct DBHashKey { uint256 hash; - DBHashKey(const uint256& hash_in) : hash(hash_in) {} + explicit DBHashKey(const uint256& hash_in) : hash(hash_in) {} ADD_SERIALIZE_METHODS; |