diff options
author | Slávek Banko <[email protected]> | 2015-06-10 02:26:54 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-06-10 02:26:54 +0200 |
commit | fae501da675f828eac939dbb991f9c1d57dc7d50 (patch) | |
tree | a0500a6fece082eb3778b4d298ed75b27a78baca | |
parent | fbf8669eccfead7293d5a09fe5db4f1a719f3b84 (diff) | |
download | dbus-1-tqt-fae501da675f828eac939dbb991f9c1d57dc7d50.tar.gz dbus-1-tqt-fae501da675f828eac939dbb991f9c1d57dc7d50.zip |
Fix missing return when comparing map types
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | tqdbusdata.cpp | 31 |
1 files 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)", |