summaryrefslogtreecommitdiff
path: root/vcl/qt5/QtVirtualDevice.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-11-19 21:48:56 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-11-20 07:40:57 +0100
commit63d676e7557f2b63d8f2df6573e3b4af5bb46cb0 (patch)
tree60a3a80fae29acf2cd56c34ee5ff9b7a856dcf44 /vcl/qt5/QtVirtualDevice.cxx
parent75f6a86ad924661f19c504380d96659e6b7d8afe (diff)
c++20: use std::erase(_if) instead of std::remove(_if)+erase (vcl)
Change-Id: Ie9bb9ce20f27162bcb7d7d25dcad99107675e2be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159709 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/qt5/QtVirtualDevice.cxx')
-rw-r--r--vcl/qt5/QtVirtualDevice.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/qt5/QtVirtualDevice.cxx b/vcl/qt5/QtVirtualDevice.cxx
index 7e0dbab873d4..22844f1df6ab 100644
--- a/vcl/qt5/QtVirtualDevice.cxx
+++ b/vcl/qt5/QtVirtualDevice.cxx
@@ -39,9 +39,7 @@ SalGraphics* QtVirtualDevice::AcquireGraphics()
void QtVirtualDevice::ReleaseGraphics(SalGraphics* pGraphics)
{
- m_aGraphics.erase(
- std::remove(m_aGraphics.begin(), m_aGraphics.end(), dynamic_cast<QtGraphics*>(pGraphics)),
- m_aGraphics.end());
+ std::erase(m_aGraphics, dynamic_cast<QtGraphics*>(pGraphics));
delete pGraphics;
}