core: avoid .at() and use [] operator (#9347)

avoid .at() where it makes sense and use [] operator in loops.
This commit is contained in:
Tom Englund 2025-02-06 12:18:04 +01:00 committed by GitHub
parent 868b2b544a
commit f1e32cd122
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 25 additions and 25 deletions

View file

@ -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) {