compiler warnings fixed

This commit is contained in:
Uwe Rathmann 2023-04-04 08:52:40 +02:00
parent cf66ea1df5
commit 91834513a6
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class IconGrid : public QskLinearBox
private: private:
void setItemsVisible( const QRectF& rect, bool on ) void setItemsVisible( const QRectF& rect, bool on )
{ {
const int dim = dimension(); const auto dim = dimension();
// we know, that all items have the same size // we know, that all items have the same size
const auto itemSize = itemAtIndex( 0 )->size(); const auto itemSize = itemAtIndex( 0 )->size();

View File

@ -132,10 +132,10 @@ void LayoutSolver::setup( bool layoutChildren,
const auto expr1 = r1.expressionAt( anchor.edge1 ); const auto expr1 = r1.expressionAt( anchor.edge1 );
Expression expr2;
if ( anchor.item2 == nullptr ) if ( anchor.item2 == nullptr )
{ {
Expression expr2;
switch( anchor.edge2 ) switch( anchor.edge2 )
{ {
case Qt::AnchorLeft: case Qt::AnchorLeft: