diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-02-06 12:18:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 11:18:04 +0000 |
| commit | f1e32cd122ad64ba7119ee7fe65f7c1074a65b91 (patch) | |
| tree | fa6f884bcdd1c876c2fb15ef496ee4bc16d936f0 /src/xwayland/XWM.cpp | |
| parent | 868b2b544abb61764089b0e4e9b0fd153a9db26f (diff) | |
core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
Diffstat (limited to 'src/xwayland/XWM.cpp')
| -rw-r--r-- | src/xwayland/XWM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index 81900c7b..68552dd6 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -1051,13 +1051,13 @@ void CXWM::readWindowData(SP<CXWaylandSurface> surf) { }; for (size_t i = 0; i < interestingProps.size(); i++) { - xcb_get_property_cookie_t cookie = xcb_get_property(connection, 0, surf->xID, interestingProps.at(i), XCB_ATOM_ANY, 0, 2048); + xcb_get_property_cookie_t cookie = xcb_get_property(connection, 0, surf->xID, interestingProps[i], XCB_ATOM_ANY, 0, 2048); xcb_get_property_reply_t* reply = xcb_get_property_reply(connection, cookie, nullptr); if (!reply) { Debug::log(ERR, "[xwm] Failed to get window property"); continue; } - readProp(surf, interestingProps.at(i), reply); + readProp(surf, interestingProps[i], reply); free(reply); } } |
