summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/AuthSuccess.h')
-rw-r--r--Swiften/Elements/AuthSuccess.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Swiften/Elements/AuthSuccess.h b/Swiften/Elements/AuthSuccess.h
index 5c0faad..af5f9bb 100644
--- a/Swiften/Elements/AuthSuccess.h
+++ b/Swiften/Elements/AuthSuccess.h
@@ -6,6 +6,8 @@
#pragma once
+#include <boost/optional.hpp>
+
#include "Swiften/Elements/Element.h"
#include "Swiften/Base/ByteArray.h"
@@ -14,15 +16,15 @@ namespace Swift {
public:
AuthSuccess() {}
- 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;
};
}