mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
CppCheck : Reduced variable scope
This commit is contained in:
1 parent
8137955add
commit
03741fd7da
1 file changed
+2
-1
@@ -107,7 +107,6 @@ QSize RiuNightchartsWidget::sizeHint() const
|
||||
{
|
||||
int widthHint = 0;
|
||||
int heightHint = 0;
|
||||
int maxPieSize = 180;
|
||||
|
||||
if ( m_showLegend )
|
||||
{
|
||||
@@ -122,6 +121,8 @@ QSize RiuNightchartsWidget::sizeHint() const
|
||||
|
||||
if (m_showPie)
|
||||
{
|
||||
int maxPieSize = 180;
|
||||
|
||||
widthHint = widthHint + maxPieSize;
|
||||
heightHint = heightHint > maxPieSize ? heightHint : maxPieSize;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user