From 91834513a68de253bcd5fbff546d3a6e238e9c66 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 4 Apr 2023 08:52:40 +0200 Subject: [PATCH] compiler warnings fixed --- examples/thumbnails/main.cpp | 2 +- playground/anchors/AnchorBox.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/thumbnails/main.cpp b/examples/thumbnails/main.cpp index 68de7927..dd9f4e6f 100644 --- a/examples/thumbnails/main.cpp +++ b/examples/thumbnails/main.cpp @@ -158,7 +158,7 @@ class IconGrid : public QskLinearBox private: void setItemsVisible( const QRectF& rect, bool on ) { - const int dim = dimension(); + const auto dim = dimension(); // we know, that all items have the same size const auto itemSize = itemAtIndex( 0 )->size(); diff --git a/playground/anchors/AnchorBox.cpp b/playground/anchors/AnchorBox.cpp index 593409ed..d3e401f9 100644 --- a/playground/anchors/AnchorBox.cpp +++ b/playground/anchors/AnchorBox.cpp @@ -132,10 +132,10 @@ void LayoutSolver::setup( bool layoutChildren, const auto expr1 = r1.expressionAt( anchor.edge1 ); - Expression expr2; - if ( anchor.item2 == nullptr ) { + Expression expr2; + switch( anchor.edge2 ) { case Qt::AnchorLeft: