summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-01 12:18:01 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-01 12:26:03 +0100
commit9509f5c7923ebd9a95068dd7b9231af79080b6bf (patch)
tree979a32e2fb2e68bef1b99ef7141d99f8fa50dae4 /svtools
parent846e0f15635bfa361d2ff32dbd77b2edcef7854f (diff)
Useless assignment + use setWidth
See http://nabble.documentfoundation.org/Cppcheck-reports-nMaxWidth-is-assigned-a-value-never-used-svtools-module-td4036771.html Change-Id: I987f1c6b107291b93875cc169f2a72e249fe2ad5
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/filedlg2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx
index b46f3246e3a0..ebc9d35b657e 100644
--- a/svtools/source/dialogs/filedlg2.cxx
+++ b/svtools/source/dialogs/filedlg2.cxx
@@ -545,7 +545,7 @@ void ImpPathDialog::PreExecute()
{
Size aDlgSize = GetPathDialog()->GetOutputSizePixel();
GetPathDialog()->SetOutputSizePixel( Size( aDlgSize.Width()+nMaxWidth-aSize.Width(), aDlgSize.Height() ) );
- aSize.Width() = nMaxWidth;
+ aSize.setWidth(nMaxWidth);
if( pOkBtn )
pOkBtn->SetSizePixel( aSize );
@@ -554,8 +554,6 @@ void ImpPathDialog::PreExecute()
if( pLoadBtn )
pLoadBtn->SetSizePixel( aSize );
}
- else
- nMaxWidth = aSize.Width();
for ( n = nOwnChildren; n < nChildren; n++ )
{