mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-25 00:43:48 -07:00
core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
This commit is contained in:
@@ -475,7 +475,7 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
|
||||
|
||||
if (flipRB) {
|
||||
for (size_t i = 0; i < shmBuffer.size(); i += 4) {
|
||||
std::swap(shmBuffer.at(i), shmBuffer.at(i + 2)); // little-endian!!!!!!
|
||||
std::swap(shmBuffer[i], shmBuffer[i + 2]); // little-endian!!!!!!
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user