layersurface: fix invalid use of std::move

fixes #6014
This commit is contained in:
Vaxry 2024-05-11 14:43:39 +01:00
parent 3529fbc6d4
commit b6a7fb9e91

View file

@ -261,7 +261,7 @@ void CLayerSurface::onCommit() {
for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) { for (auto it = PMONITOR->m_aLayerSurfaceLayers[layer].begin(); it != PMONITOR->m_aLayerSurfaceLayers[layer].end(); it++) {
if (*it == self) { if (*it == self) {
PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(std::move(*it)); PMONITOR->m_aLayerSurfaceLayers[layerSurface->current.layer].emplace_back(*it);
PMONITOR->m_aLayerSurfaceLayers[layer].erase(it); PMONITOR->m_aLayerSurfaceLayers[layer].erase(it);
break; break;
} }