diff options
Diffstat (limited to 'Swiften/Elements/AuthChallenge.h')
-rw-r--r-- | Swiften/Elements/AuthChallenge.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Swiften/Elements/AuthChallenge.h b/Swiften/Elements/AuthChallenge.h index 21486df..74d7dba 100644 --- a/Swiften/Elements/AuthChallenge.h +++ b/Swiften/Elements/AuthChallenge.h @@ -6,24 +6,29 @@ #pragma once +#include <boost/optional.hpp> + #include "Swiften/Base/ByteArray.h" #include "Swiften/Elements/Element.h" namespace Swift { class AuthChallenge : public Element { public: - AuthChallenge(const ByteArray& value = "") : value(value) { + AuthChallenge() { + } + + AuthChallenge(const ByteArray& value) : value(value) { } - const ByteArray& getValue() const { + const boost::optional<ByteArray>& getValue() const { return value; } void setValue(const ByteArray& value) { - this->value = value; + this->value = boost::optional<ByteArray>(value); } private: - ByteArray value; + boost::optional<ByteArray> value; }; } |