summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-05-07 07:33:49 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-05-09 10:27:55 (GMT)
commit6db4b8979b4a7ca72305266a464c571fb648358b (patch)
tree88e9743b97220d2ab20d964c44143e0c76d74c3c
parent47ba7eb4a5d3a48f4aa554ff07d20cc7c8682bae (diff)
downloadswift-6db4b8979b4a7ca72305266a464c571fb648358b.zip
swift-6db4b8979b4a7ca72305266a464c571fb648358b.tar.bz2
Fix compiler warnings in Sluift convertors.
Change-Id: I26a212dcf17af79696c0446a88fb2272e890f007
-rw-r--r--Sluift/ElementConvertors/IQConvertor.cpp2
-rw-r--r--Sluift/ElementConvertors/MessageConvertor.cpp2
-rw-r--r--Sluift/ElementConvertors/PresenceConvertor.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/Sluift/ElementConvertors/IQConvertor.cpp b/Sluift/ElementConvertors/IQConvertor.cpp
index 8a8e463..d90c864 100644
--- a/Sluift/ElementConvertors/IQConvertor.cpp
+++ b/Sluift/ElementConvertors/IQConvertor.cpp
@@ -57,6 +57,8 @@ std::string IQConvertor::convertIQTypeToString(IQ::Type type) {
case IQ::Result: return "result";
case IQ::Error: return "error";
}
+ assert(false);
+ return "";
}
IQ::Type IQConvertor::convertIQTypeFromString(const std::string& type) {
diff --git a/Sluift/ElementConvertors/MessageConvertor.cpp b/Sluift/ElementConvertors/MessageConvertor.cpp
index 9994bd0..0bc7fbb 100644
--- a/Sluift/ElementConvertors/MessageConvertor.cpp
+++ b/Sluift/ElementConvertors/MessageConvertor.cpp
@@ -58,6 +58,8 @@ std::string MessageConvertor::convertMessageTypeToString(Message::Type type) {
case Message::Groupchat: return "groupchat";
case Message::Headline: return "headline";
}
+ assert(false);
+ return "";
}
Message::Type MessageConvertor::convertMessageTypeFromString(const std::string& type) {
diff --git a/Sluift/ElementConvertors/PresenceConvertor.cpp b/Sluift/ElementConvertors/PresenceConvertor.cpp
index ea6bbb8..3725dd2 100644
--- a/Sluift/ElementConvertors/PresenceConvertor.cpp
+++ b/Sluift/ElementConvertors/PresenceConvertor.cpp
@@ -61,6 +61,8 @@ std::string PresenceConvertor::convertPresenceTypeToString(Presence::Type type)
case Presence::Unsubscribe: return "unsubscribe";
case Presence::Unsubscribed: return "unsubscribed";
}
+ assert(false);
+ return "";
}
Presence::Type PresenceConvertor::convertPresenceTypeFromString(const std::string& type) {