Kaydet (Commit) 8efc2f74 authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope of var in svtools/..svimpbox.cxx

üst 8cfd5f62
......@@ -1358,14 +1358,13 @@ void SvImpLBox::Resize()
{
Size aSize( pView->Control::GetOutputSizePixel());
long nEntryHeight = pView->GetEntryHeight();
int nEntryCount = 0;
if( aSize.Width() <= 0 || aSize.Height() <= 0 )
return;
if( nEntryHeight )
{
// Set the view height to an integer multiple of the entry height.
nEntryCount = (int) aSize.Height() / nEntryHeight;
int nEntryCount = (int) aSize.Height() / nEntryHeight;
aSize.Height() = pView->GetEntryHeight() * nEntryCount;
pView->Control::SetOutputSizePixel( aSize );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment