[Libreoffice-commits] core.git: svtools/source

Julien Nabet serval2412 at yahoo.fr
Fri Mar 1 03:28:06 PST 2013


 svtools/source/dialogs/filedlg2.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 9509f5c7923ebd9a95068dd7b9231af79080b6bf
Author: Julien Nabet <serval2412 at 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++ )
     {


More information about the Libreoffice-commits mailing list