diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-17 11:13:43 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-19 07:03:46 (GMT) |
commit | b6e77a03685c8cca575c026b8b3ae5a86bb0f828 (patch) | |
tree | 4602d826ed00b20127f9355ed239dc687f34d8be /Swiften/Elements | |
parent | e32154b0d6ad0c9c8d2bbd56a1f0b9f7b7c73c89 (diff) | |
download | swift-b6e77a03685c8cca575c026b8b3ae5a86bb0f828.zip swift-b6e77a03685c8cca575c026b8b3ae5a86bb0f828.tar.bz2 |
Fixed Linux compilation.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/StatusShow.cpp | 12 | ||||
-rw-r--r-- | Swiften/Elements/StatusShow.h | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/Swiften/Elements/StatusShow.cpp b/Swiften/Elements/StatusShow.cpp new file mode 100644 index 0000000..656e5c4 --- /dev/null +++ b/Swiften/Elements/StatusShow.cpp @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include <Swiften/Elements/StatusShow.h> + +using namespace Swift; + +StatusShow::StatusShow(const Type& type) : type_(type) { +} diff --git a/Swiften/Elements/StatusShow.h b/Swiften/Elements/StatusShow.h index 6ea8385..cd3477e 100644 --- a/Swiften/Elements/StatusShow.h +++ b/Swiften/Elements/StatusShow.h @@ -13,8 +13,7 @@ namespace Swift { public: enum Type { Online, Away, FFC, XA, DND, None }; - StatusShow(const Type& type = Online) : type_(type) { - } + StatusShow(const Type& type = Online); void setType(const Type& type) { type_ = type; @@ -37,6 +36,7 @@ namespace Swift { case DND: return 3; case None: return 0; } + return 0; } private: |