summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2019-11-27 17:13:13 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2019-12-12 15:25:41 +0100
commit43837f38b23e46b2b26599b30724902ce6eddabe (patch)
treef81d442dbe0c86bba8fb7afcfbee9116dd559337 /src/dbus
parentb79d74e96f078580adfd403c8118f1e5429bfb8d (diff)
Change some uses of QMap::insertMulti to QMultiMap::insert
By casting it, these are situations where we cannot change the type itself to QMultiMap. For QVariant it's a public define and for dbus it's the type of an argument to the function. Change-Id: I0f385dc857fce5de3e8254d18268fd84a6d7707c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusargument.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusargument.h b/src/dbus/qdbusargument.h
index 340f11bf5d..477bd1e8fd 100644
--- a/src/dbus/qdbusargument.h
+++ b/src/dbus/qdbusargument.h
@@ -321,7 +321,7 @@ inline const QDBusArgument &operator>>(const QDBusArgument &arg, QMap<Key, T> &m
T value;
arg.beginMapEntry();
arg >> key >> value;
- map.insertMulti(key, value);
+ static_cast<QMultiMap<Key, T> &>(map).insert(key, value);
arg.endMapEntry();
}
arg.endMap();