Kaydet (Commit) c832da45 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: can reduce the scope of these variables

üst 488f0db2
...@@ -5939,8 +5939,6 @@ SvxIconChangeDialog::SvxIconChangeDialog( ...@@ -5939,8 +5939,6 @@ SvxIconChangeDialog::SvxIconChangeDialog(
BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize) BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize)
{ {
Point aEmptyPoint(0,0); Point aEmptyPoint(0,0);
sal_Int32 imgNewWidth = 0;
sal_Int32 imgNewHeight = 0;
double imgposX = 0; double imgposX = 0;
double imgposY = 0; double imgposY = 0;
BitmapEx aRet = aBitmap; BitmapEx aRet = aBitmap;
...@@ -5950,6 +5948,9 @@ BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long a ...@@ -5950,6 +5948,9 @@ BitmapEx SvxIconSelectorDialog::AutoScaleBitmap(BitmapEx & aBitmap, const long a
Size aScaledSize; Size aScaledSize;
if (imgOldWidth >= aStandardSize || imgOldHeight >= aStandardSize) if (imgOldWidth >= aStandardSize || imgOldHeight >= aStandardSize)
{ {
sal_Int32 imgNewWidth = 0;
sal_Int32 imgNewHeight = 0;
if (imgOldWidth >= imgOldHeight) if (imgOldWidth >= imgOldHeight)
{ {
imgNewWidth = aStandardSize; imgNewWidth = aStandardSize;
......
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