aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-22 13:56:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-22 13:58:54 +0200
commit6ba23a245449aaa9c1a7ab8e954d93f5f4366530 (patch)
tree55c5aa5610861743aceceafb86802f4c0251369d /sources/pyside2
parentd64ff5aff4af37f3a6e0098e499116baa22950ed (diff)
Fix deprecation warnings about deprecated container conversions
Fix warnings introduced by qtbase/92f984273262531f909ede17a324f546fe502b5c. Change-Id: Ic46e5c93f8dd1910742fbd0578602cca4461643b Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'sources/pyside2')
-rw-r--r--sources/pyside2/libpyside/globalreceiverv2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/libpyside/globalreceiverv2.cpp b/sources/pyside2/libpyside/globalreceiverv2.cpp
index 43ce50a75..65b8f74e3 100644
--- a/sources/pyside2/libpyside/globalreceiverv2.cpp
+++ b/sources/pyside2/libpyside/globalreceiverv2.cpp
@@ -283,7 +283,7 @@ int GlobalReceiverV2::refCount(const QObject* link) const
void GlobalReceiverV2::notify()
{
- const auto objSet = QSet<const QObject*>::fromList(m_refs);
+ const QSet<const QObject*> objSet(m_refs.cbegin(), m_refs.cend());
Py_BEGIN_ALLOW_THREADS
for (const QObject *o : objSet) {
QMetaObject::disconnect(o, DESTROY_SIGNAL_ID, this, DESTROY_SLOT_ID);