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:29:55 +0200 |
commit | 25c8746ac8efb04f45c1be7229c9b73eee924157 (patch) | |
tree | b8ec5e11281ccc8e9332dd16181f584ca907d330 /tqdbusdata.cpp | |
parent | 9c56b247e97781228ead77d64cfeda751fa9f2e2 (diff) | |
download | dbus-1-tqt-25c8746ac8efb04f45c1be7229c9b73eee924157.tar.gz dbus-1-tqt-25c8746ac8efb04f45c1be7229c9b73eee924157.zip |
Fix missing return when comparing map types
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit fae501da675f828eac939dbb991f9c1d57dc7d50)
Diffstat (limited to 'tqdbusdata.cpp')
-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)", |