svtools/source/dialogs/filedlg2.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 9509f5c7923ebd9a95068dd7b9231af79080b6bf Author: Julien Nabet <serval2...@yahoo.fr> Date: Fri Mar 1 12:18:01 2013 +0100 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 diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx index b46f324..ebc9d35 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++ ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits