diff options
Diffstat (limited to 'Sluift')
-rw-r--r-- | Sluift/ElementConvertors/IQConvertor.cpp | 2 | ||||
-rw-r--r-- | Sluift/ElementConvertors/MessageConvertor.cpp | 2 | ||||
-rw-r--r-- | Sluift/ElementConvertors/PresenceConvertor.cpp | 2 |
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) { |