forked from qt-creator/qt-creator
Utils: Add sorted() function
For simpler calling code. Change-Id: Ia0a16a28770fd172f74d06a626148248bf5d3c0c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -794,10 +794,9 @@ int GdbEngine::commandTimeoutTime() const
|
||||
|
||||
void GdbEngine::commandTimeout()
|
||||
{
|
||||
QList<int> keys = m_commandForToken.keys();
|
||||
Utils::sort(keys);
|
||||
const QList<int> keys = Utils::sorted(m_commandForToken.keys());
|
||||
bool killIt = false;
|
||||
for (int key : std::as_const(keys)) {
|
||||
for (int key : keys) {
|
||||
const DebuggerCommand &cmd = m_commandForToken.value(key);
|
||||
killIt = true;
|
||||
showMessage(QString::number(key) + ": " + cmd.function);
|
||||
|
||||
Reference in New Issue
Block a user