Fix missing return when comparing map types

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fae501da67)
r14.0.x
Slávek Banko 10 years ago
parent 9c56b247e9
commit 25c8746ac8

@ -235,43 +235,34 @@ bool TQT_DBusData::operator==(const TQT_DBusData& other) const
switch (d->keyType) switch (d->keyType)
{ {
case TQT_DBusData::Byte: case TQT_DBusData::Byte:
toByteKeyMap() == other.toByteKeyMap(); return toByteKeyMap() == other.toByteKeyMap();
break;
case TQT_DBusData::Int16: case TQT_DBusData::Int16:
toInt16KeyMap() == other.toInt16KeyMap(); return toInt16KeyMap() == other.toInt16KeyMap();
break;
case TQT_DBusData::UInt16: case TQT_DBusData::UInt16:
toUInt16KeyMap() == other.toUInt16KeyMap(); return toUInt16KeyMap() == other.toUInt16KeyMap();
break;
case TQT_DBusData::Int32: case TQT_DBusData::Int32:
toInt32KeyMap() == other.toInt32KeyMap(); return toInt32KeyMap() == other.toInt32KeyMap();
break;
case TQT_DBusData::UInt32: case TQT_DBusData::UInt32:
toUInt32KeyMap() == other.toUInt32KeyMap(); return toUInt32KeyMap() == other.toUInt32KeyMap();
break;
case TQT_DBusData::Int64: case TQT_DBusData::Int64:
toInt64KeyMap() == other.toInt64KeyMap(); return toInt64KeyMap() == other.toInt64KeyMap();
break;
case TQT_DBusData::UInt64: case TQT_DBusData::UInt64:
toUInt64KeyMap() == other.toUInt64KeyMap(); return toUInt64KeyMap() == other.toUInt64KeyMap();
break;
case TQT_DBusData::String: case TQT_DBusData::String:
toStringKeyMap() == other.toStringKeyMap(); return toStringKeyMap() == other.toStringKeyMap();
break;
case TQT_DBusData::ObjectPath: case TQT_DBusData::ObjectPath:
toObjectPathKeyMap() == other.toObjectPathKeyMap(); return toObjectPathKeyMap() == other.toObjectPathKeyMap();
break;
case TQT_DBusData::UnixFd: case TQT_DBusData::UnixFd:
toUnixFdKeyMap() == other.toUnixFdKeyMap(); return toUnixFdKeyMap() == other.toUnixFdKeyMap();
break;
default: default:
tqFatal("TQT_DBusData operator== unhandled map key type %d(%s)", tqFatal("TQT_DBusData operator== unhandled map key type %d(%s)",

Loading…
Cancel
Save