summaryrefslogtreecommitdiffstats
path: root/src/plugins/styles
diff options
context:
space:
mode:
authorXing LinKun <xinglinkun@uniontech.com>2021-03-30 17:59:02 +0800
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-31 01:09:24 +0000
commit6a7d2da7dde2500616022cdb9ea9867513d17053 (patch)
tree5f14bdf957a1f6576f3cf6d8a5c8696024b9f8ed /src/plugins/styles
parentae0fe7d4daa051f4f1e6540005d81c64f6c191a4 (diff)
Fix coding style in android platform and style plugins
Change-Id: Ic0a1150178c571ea0c20a045ad7520d23d6d878c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/styles')
-rw-r--r--src/plugins/styles/android/qandroidstyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/styles/android/qandroidstyle.cpp b/src/plugins/styles/android/qandroidstyle.cpp
index 63c5767126..1d9ce7e9b0 100644
--- a/src/plugins/styles/android/qandroidstyle.cpp
+++ b/src/plugins/styles/android/qandroidstyle.cpp
@@ -1352,9 +1352,10 @@ void QAndroidStyle::AndroidLayerDrawable::draw(QPainter *painter, const QStyleOp
QAndroidStyle::AndroidDrawable *QAndroidStyle::AndroidLayerDrawable::layer(int id) const
{
- for (const LayerType &layer : m_layers)
+ for (const LayerType &layer : m_layers) {
if (layer.first == id)
return layer.second;
+ }
return 0;
}