From fd0473f489a570eedbd61b69c2d201fe92f6c05e Mon Sep 17 00:00:00 2001 From: Wang Peng Date: Fri, 17 Jul 2020 15:04:48 +0800 Subject: [PATCH] fix qcombobox code style In code style, it shouldn't look like this Change-Id: I615f3a6ca1b4f33e0693a4e272d5703d9285a8a8 Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qcombobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index abb1fd7572..27928a6d01 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -1361,7 +1361,7 @@ void QComboBoxPrivate::_q_returnPressed() break; case QComboBox::InsertAlphabetically: index = 0; - for (int i=0; i< q->count(); i++, index++ ) { + for (int i = 0; i < q->count(); ++i, ++index) { if (text.toLower() < q->itemText(i).toLower()) break; }