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/managers/XCursorManager.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/managers/XCursorManager.cpp')
| -rw-r--r-- | src/managers/XCursorManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/XCursorManager.cpp b/src/managers/XCursorManager.cpp index 3473df44..3f554804 100644 --- a/src/managers/XCursorManager.cpp +++ b/src/managers/XCursorManager.cpp @@ -482,7 +482,7 @@ std::vector<SP<SXCursors>> CXCursorManager::loadStandardCursors(std::string cons // load the default xcursor shapes that exist in the theme for (size_t i = 0; i < XCURSOR_STANDARD_NAMES.size(); ++i) { - std::string shape{XCURSOR_STANDARD_NAMES.at(i)}; + std::string shape{XCURSOR_STANDARD_NAMES[i]}; auto xImages = XcursorShapeLoadImages(i << 1 /* wtf xcursor? */, name.c_str(), size); if (!xImages) { |
