forked from qt-creator/qt-creator
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d4b3789db4
commit
670e54345c
@@ -409,16 +409,16 @@ void AndroidConfig::updateAvailableSdkPlatforms() const
|
||||
} else if (line.startsWith(QLatin1String("---")) || line.startsWith(QLatin1String("==="))) {
|
||||
if (platform.apiLevel == -1)
|
||||
continue;
|
||||
auto it = qLowerBound(m_availableSdkPlatforms.begin(), m_availableSdkPlatforms.end(),
|
||||
platform, sortSdkPlatformByApiLevel);
|
||||
auto it = std::lower_bound(m_availableSdkPlatforms.begin(), m_availableSdkPlatforms.end(),
|
||||
platform, sortSdkPlatformByApiLevel);
|
||||
m_availableSdkPlatforms.insert(it, platform);
|
||||
platform = SdkPlatform();
|
||||
}
|
||||
}
|
||||
|
||||
if (platform.apiLevel != -1) {
|
||||
auto it = qLowerBound(m_availableSdkPlatforms.begin(), m_availableSdkPlatforms.end(),
|
||||
platform, sortSdkPlatformByApiLevel);
|
||||
auto it = std::lower_bound(m_availableSdkPlatforms.begin(), m_availableSdkPlatforms.end(),
|
||||
platform, sortSdkPlatformByApiLevel);
|
||||
m_availableSdkPlatforms.insert(it, platform);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user