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/XDataSource.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/XDataSource.cpp')
| -rw-r--r-- | src/xwayland/XDataSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwayland/XDataSource.cpp b/src/xwayland/XDataSource.cpp index e6282dcb..9384db69 100644 --- a/src/xwayland/XDataSource.cpp +++ b/src/xwayland/XDataSource.cpp @@ -57,8 +57,8 @@ void CXDataSource::send(const std::string& mime, CFileDescriptor fd) { mimeAtom = HYPRATOMS["UTF8_STRING"]; else { for (size_t i = 0; i < mimeTypes.size(); ++i) { - if (mimeTypes.at(i) == mime) { - mimeAtom = mimeAtoms.at(i); + if (mimeTypes[i] == mime) { + mimeAtom = mimeAtoms[i]; break; } } |
