mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 01:13:12 +01:00
Correct explicit-constructor clang warning
This commit is contained in:
parent
a3d6b6f313
commit
6cb5078cb2
@ -154,7 +154,7 @@ class XmlNode : virtual public XmlValue {
|
||||
const tinyxml2::XMLElement *element;
|
||||
|
||||
public:
|
||||
XmlNode(const tinyxml2::XMLElement *element_)
|
||||
explicit XmlNode(const tinyxml2::XMLElement *element_)
|
||||
: XmlValue(safeValueForNode(element_)), element(element_) {}
|
||||
|
||||
~XmlNode() override = default;
|
||||
|
@ -48,8 +48,8 @@ class autosprintf {
|
||||
/* Destructor: frees the temporarily allocated string. */
|
||||
~autosprintf();
|
||||
/* Conversion to string. */
|
||||
operator char*() const;
|
||||
operator std::string() const;
|
||||
explicit operator char*() const;
|
||||
explicit operator std::string() const;
|
||||
/* Output to an ostream. */
|
||||
friend inline std::ostream& operator<<(std::ostream& stream,
|
||||
const autosprintf& tmp) {
|
||||
|
Loading…
Reference in New Issue
Block a user