From 6db4b8979b4a7ca72305266a464c571fb648358b Mon Sep 17 00:00:00 2001
From: Richard Maudsley <richard.maudsley@isode.com>
Date: Wed, 7 May 2014 08:33:49 +0100
Subject: Fix compiler warnings in Sluift convertors.

Change-Id: I26a212dcf17af79696c0446a88fb2272e890f007

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) {
-- 
cgit v0.10.2-6-g49f6