XCB plugin: replace deprecated QList::swap()
QList::swap(int, int) was deprecated. Replace it with swapItemsAt() Change-Id: I077c5b7222e40b928ee9035b8cbf4ebcc91aa15e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
4c522e0226
commit
7ec7f338bc
@ -147,7 +147,7 @@ void QXcbVirtualDesktop::setPrimaryScreen(QPlatformScreen *s)
|
|||||||
{
|
{
|
||||||
const int idx = m_screens.indexOf(s);
|
const int idx = m_screens.indexOf(s);
|
||||||
Q_ASSERT(idx > -1);
|
Q_ASSERT(idx > -1);
|
||||||
m_screens.swap(0, idx);
|
m_screens.swapItemsAt(0, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
QXcbXSettings *QXcbVirtualDesktop::xSettings() const
|
QXcbXSettings *QXcbVirtualDesktop::xSettings() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user