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: