compiler warnings fixed

This commit is contained in:
Uwe Rathmann 2017-12-07 14:58:46 +01:00
parent 6caa018d1c
commit 0b3315d231
4 changed files with 9 additions and 9 deletions

View File

@ -51,7 +51,7 @@ public:
} }
}; };
void addTestRectangle( QskLinearBox* parent ) static void addTestRectangle( QskLinearBox* parent )
{ {
auto box = new Box( parent ); auto box = new Box( parent );
box->setMargins( 50 ); box->setMargins( 50 );

View File

@ -122,7 +122,7 @@ bool Benchmark::run( const QString& dirName )
for ( int i = 0; i < qvgFiles.size(); i++ ) for ( int i = 0; i < qvgFiles.size(); i++ )
{ {
int textureId = QskGraphicTextureFactory::createTexture( const auto textureId = QskGraphicTextureFactory::createTexture(
QskGraphicTextureFactory::OpenGL, targetRect, Qt::KeepAspectRatio, QskGraphicTextureFactory::OpenGL, targetRect, Qt::KeepAspectRatio,
graphics[i], colorFilter ); graphics[i], colorFilter );
@ -146,7 +146,7 @@ bool Benchmark::run( const QString& dirName )
for ( int i = 0; i < qvgFiles.size(); i++ ) for ( int i = 0; i < qvgFiles.size(); i++ )
{ {
int textureId = QskGraphicTextureFactory::createTexture( const auto textureId = QskGraphicTextureFactory::createTexture(
QskGraphicTextureFactory::Raster, targetRect, Qt::KeepAspectRatio, QskGraphicTextureFactory::Raster, targetRect, Qt::KeepAspectRatio,
graphics[i], colorFilter ); graphics[i], colorFilter );

View File

@ -20,12 +20,12 @@
#if 1 #if 1
// should be skin hints // should be skin hints
const qreal qskMinorTick = 20; static const qreal qskMinorTick = 20;
const qreal qskMajorTick = 1.5 * qskMinorTick; static const qreal qskMajorTick = 1.5 * qskMinorTick;
const qreal qskMargin = 20; static const qreal qskMargin = 20;
const qreal qskPeak = 10; static const qreal qskPeak = 10;
QFont qskLabelFont; static QFont qskLabelFont;
#endif #endif
class TicksNode : public QSGGeometryNode class TicksNode : public QSGGeometryNode

View File

@ -48,7 +48,7 @@ static QColor randomColor()
"DarkSlateGray" "DarkSlateGray"
}; };
const int index = qrand() % ( sizeof( colors ) / sizeof( colors[0] ) ); const int index = qrand() % int( ( sizeof( colors ) / sizeof( colors[0] ) ) );
return QColor( colors[ index ] ); return QColor( colors[ index ] );
} }