mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Avoid potential container detachment
Suppress clazy warning: warning: Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
This commit is contained in:
parent
e6f07a6fe4
commit
c8b66b25e8
2 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@ QString Utils::Misc::opensslVersionString()
|
|||
#else
|
||||
static const auto version {QString::fromLatin1(SSLeay_version(SSLEAY_VERSION))};
|
||||
#endif
|
||||
return QStringView(version).split(u' ', Qt::SkipEmptyParts)[1].toString();
|
||||
return QStringView(version).split(u' ', Qt::SkipEmptyParts).at(1).toString();
|
||||
}
|
||||
|
||||
QString Utils::Misc::zlibVersionString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue