forked from qt-creator/qt-creator
CppEditor: Limit the usage of qMakePair and std::make_pair
Change-Id: I4c85edbaccb553320b5488d3dd2c2595fc2bd825 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -312,7 +312,7 @@ QVersionNumber ClangdSettings::clangdVersion(const FilePath &clangdFilePath)
|
||||
const auto it = versionCache.find(clangdFilePath);
|
||||
if (it == versionCache.end()) {
|
||||
const QVersionNumber version = getClangdVersion(clangdFilePath);
|
||||
versionCache.insert(clangdFilePath, qMakePair(timeStamp, version));
|
||||
versionCache.insert(clangdFilePath, {timeStamp, version});
|
||||
return version;
|
||||
}
|
||||
if (it->first != timeStamp) {
|
||||
|
||||
Reference in New Issue
Block a user