summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-07 16:15:11 +0100
committerMax Kellermann <max@musicpd.org>2017-01-07 16:15:11 +0100
commit8986d14e985d3459ca761df97c1eb2bd7f614f2a (patch)
treebaf974c4ce130c9664f4c707b4979adaf4346425
parent5163b1a6241882a3d45cda053daae182de0ebf5d (diff)
lib/expat/ExpatParser: make constructors "explicit"
-rw-r--r--src/lib/expat/ExpatParser.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/expat/ExpatParser.hxx b/src/lib/expat/ExpatParser.hxx
index 855fbeb06..681b1b28b 100644
--- a/src/lib/expat/ExpatParser.hxx
+++ b/src/lib/expat/ExpatParser.hxx
@@ -31,10 +31,10 @@ class InputStream;
class ExpatError final : public std::runtime_error {
public:
- ExpatError(XML_Error code)
+ explicit ExpatError(XML_Error code)
:std::runtime_error(XML_ErrorString(code)) {}
- ExpatError(XML_Parser parser)
+ explicit ExpatError(XML_Parser parser)
:ExpatError(XML_GetErrorCode(parser)) {}
};
@@ -42,7 +42,7 @@ class ExpatParser final {
const XML_Parser parser;
public:
- ExpatParser(void *userData)
+ explicit ExpatParser(void *userData)
:parser(XML_ParserCreate(nullptr)) {
XML_SetUserData(parser, userData);
}