mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Reduced variable scope
This commit is contained in:
@@ -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