mirror of
https://github.com/vgough/encfs.git
synced 2025-06-25 14:32:13 +02: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;
|
const tinyxml2::XMLElement *element;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
XmlNode(const tinyxml2::XMLElement *element_)
|
explicit XmlNode(const tinyxml2::XMLElement *element_)
|
||||||
: XmlValue(safeValueForNode(element_)), element(element_) {}
|
: XmlValue(safeValueForNode(element_)), element(element_) {}
|
||||||
|
|
||||||
~XmlNode() override = default;
|
~XmlNode() override = default;
|
||||||
|
@ -48,8 +48,8 @@ class autosprintf {
|
|||||||
/* Destructor: frees the temporarily allocated string. */
|
/* Destructor: frees the temporarily allocated string. */
|
||||||
~autosprintf();
|
~autosprintf();
|
||||||
/* Conversion to string. */
|
/* Conversion to string. */
|
||||||
operator char*() const;
|
explicit operator char*() const;
|
||||||
operator std::string() const;
|
explicit operator std::string() const;
|
||||||
/* Output to an ostream. */
|
/* Output to an ostream. */
|
||||||
friend inline std::ostream& operator<<(std::ostream& stream,
|
friend inline std::ostream& operator<<(std::ostream& stream,
|
||||||
const autosprintf& tmp) {
|
const autosprintf& tmp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user