diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 20:39:54 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:35 +0200 |
commit | 8efc2f7428b86b8de6e4d6cc77c714c24ad2d49b (patch) | |
tree | 1afba753b17665d8a3397afd3a16cd34235eec21 /svtools | |
parent | 8cfd5f620df5093c1b4bb006c4b583dd77ef74db (diff) |
cppcheck reduce scope of var in svtools/..svimpbox.cxx
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 7f8df9b9897e..87bfde7c7efb 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -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 ); } |