From fae501da675f828eac939dbb991f9c1d57dc7d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 10 Jun 2015 02:26:54 +0200 Subject: [PATCH] Fix missing return when comparing map types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tqdbusdata.cpp | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/tqdbusdata.cpp b/tqdbusdata.cpp index 5a6cfa9..0afa7e8 100644 --- a/tqdbusdata.cpp +++ b/tqdbusdata.cpp @@ -235,43 +235,34 @@ bool TQT_DBusData::operator==(const TQT_DBusData& other) const switch (d->keyType) { case TQT_DBusData::Byte: - toByteKeyMap() == other.toByteKeyMap(); - break; + return toByteKeyMap() == other.toByteKeyMap(); case TQT_DBusData::Int16: - toInt16KeyMap() == other.toInt16KeyMap(); - break; + return toInt16KeyMap() == other.toInt16KeyMap(); case TQT_DBusData::UInt16: - toUInt16KeyMap() == other.toUInt16KeyMap(); - break; + return toUInt16KeyMap() == other.toUInt16KeyMap(); case TQT_DBusData::Int32: - toInt32KeyMap() == other.toInt32KeyMap(); - break; + return toInt32KeyMap() == other.toInt32KeyMap(); case TQT_DBusData::UInt32: - toUInt32KeyMap() == other.toUInt32KeyMap(); - break; + return toUInt32KeyMap() == other.toUInt32KeyMap(); + case TQT_DBusData::Int64: - toInt64KeyMap() == other.toInt64KeyMap(); - break; + return toInt64KeyMap() == other.toInt64KeyMap(); case TQT_DBusData::UInt64: - toUInt64KeyMap() == other.toUInt64KeyMap(); - break; + return toUInt64KeyMap() == other.toUInt64KeyMap(); case TQT_DBusData::String: - toStringKeyMap() == other.toStringKeyMap(); - break; + return toStringKeyMap() == other.toStringKeyMap(); case TQT_DBusData::ObjectPath: - toObjectPathKeyMap() == other.toObjectPathKeyMap(); - break; + return toObjectPathKeyMap() == other.toObjectPathKeyMap(); case TQT_DBusData::UnixFd: - toUnixFdKeyMap() == other.toUnixFdKeyMap(); - break; + return toUnixFdKeyMap() == other.toUnixFdKeyMap(); default: tqFatal("TQT_DBusData operator== unhandled map key type %d(%s)",