Skip to content

Commit fe805ea

Browse files
practicalswiftMarcoFalke
authored andcommitted
Declare single-argument (non-converting) constructors "explicit"
In order to avoid unintended implicit conversions. Cherry-picked from 64fb0ac
1 parent 8a2d6f1 commit fe805ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/univalue_utffilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class JSONUTF8StringFilter
1414
{
1515
public:
16-
JSONUTF8StringFilter(std::string &s):
16+
explicit JSONUTF8StringFilter(std::string &s):
1717
str(s), is_valid(true), codepoint(0), state(0), surpair(0)
1818
{
1919
}

0 commit comments

Comments
 (0)