telepathy-qt: Fix deprecation warnings for Qt 5.13
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue May 5 23:32:42 UTC 2020
Module: telepathy-qt
Branch: master
Commit: 512a811602d0169a5b466fd501e48264fb22fccd
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=512a811602d0169a5b466fd501e48264fb22fccd
Author: Alexander Akulich <akulichalexander at gmail.com>
Date: Wed May 6 02:14:15 2020 +0300
Fix deprecation warnings for Qt 5.13
---
TelepathyQt/referenced-handles.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/TelepathyQt/referenced-handles.cpp b/TelepathyQt/referenced-handles.cpp
index 4ed8a5b5..8c3d991f 100644
--- a/TelepathyQt/referenced-handles.cpp
+++ b/TelepathyQt/referenced-handles.cpp
@@ -269,7 +269,11 @@ bool ReferencedHandles::removeOne(uint handle)
void ReferencedHandles::swap(int i, int j)
{
+#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
+ mPriv->handles.swapItemsAt(i, j);
+#else
mPriv->handles.swap(i, j);
+#endif
}
uint ReferencedHandles::takeAt(int i)
More information about the telepathy-commits
mailing list