code changes to help the static code analyzer
This commit is contained in:
parent
54f689b9a4
commit
34b158b023
|
@ -116,8 +116,8 @@ void QskBoxNode::setBoxData( const QRectF& rect,
|
|||
}
|
||||
}
|
||||
|
||||
bool maybeFlat = false;
|
||||
|
||||
#if 0
|
||||
/*
|
||||
Always using the same material result in a better batching
|
||||
but wastes some memory. when we have a solid color.
|
||||
|
@ -125,6 +125,8 @@ void QskBoxNode::setBoxData( const QRectF& rect,
|
|||
but for the moment we go with performance.
|
||||
*/
|
||||
|
||||
bool maybeFlat = true;
|
||||
|
||||
if ( maybeFlat )
|
||||
{
|
||||
if ( ( hasFill && hasBorder ) ||
|
||||
|
@ -134,6 +136,9 @@ void QskBoxNode::setBoxData( const QRectF& rect,
|
|||
maybeFlat = false;
|
||||
}
|
||||
}
|
||||
#else
|
||||
bool maybeFlat = false;
|
||||
#endif
|
||||
|
||||
QskBoxRenderer renderer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue