Skip to content

Commit

Permalink
Fix a deprecation warning for Qt 5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Sep 24, 2020
1 parent 6298ef9 commit 7e856f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/stubs/TelepathyQt/referenced-handles.cpp
Expand Up @@ -182,7 +182,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)
Expand Down

0 comments on commit 7e856f3

Please sign in to comment.