core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
This commit is contained in:
parent
868b2b544a
commit
f1e32cd122
8 changed files with 25 additions and 25 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue