Kaydet (Commit) 9509f5c7 authored tarafından Julien Nabet's avatar Julien Nabet

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
üst 846e0f15
......@@ -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++ )
{
......
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