Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Declare single-argument (non-converting) constructors "explicit"
Browse files Browse the repository at this point in the history
In order to avoid unintended implicit conversions.

Cherry-picked from 64fb0ac016c7fd01c60c39af60f6431bac57f9ee
  • Loading branch information
practicalswift authored and MarcoFalke committed Sep 29, 2017
1 parent 8a2d6f1 commit fe805ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/univalue_utffilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class JSONUTF8StringFilter
{
public:
JSONUTF8StringFilter(std::string &s):
explicit JSONUTF8StringFilter(std::string &s):
str(s), is_valid(true), codepoint(0), state(0), surpair(0)
{
}
Expand Down

0 comments on commit fe805ea

Please sign in to comment.