[Libreoffice-commits] .: sfx2/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Mar 18 13:45:03 PDT 2011


 sfx2/source/dialog/passwd.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 01f4f7835244689f7a11fe9a964576ca114db64c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 18 20:44:57 2011 +0000

    WaE: nBtnIndex set but unused

diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index 45ba22e..ca5f02f 100755
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -177,10 +177,10 @@ SfxPasswordDialog::SfxPasswordDialog( Window* pParent, const String* pGroupText
     nChildIndex = xLayout->addChild( xButtons );
     xLayout->setBorders( nChildIndex, -2, 0, -2, -2 );
 
-    size_t nBtnIndex = xButtons->addWindow( &maHelpBtn, 0, aBtnSize );
+    xButtons->addWindow( &maHelpBtn, 0, aBtnSize );
     xButtons->addChild( new vcl::Spacer( xButtons.get() ) );
-    nBtnIndex = xButtons->addWindow( &maOKBtn, 0, aBtnSize );
-    nBtnIndex = xButtons->addWindow( &maCancelBtn, 0, aBtnSize );
+    xButtons->addWindow( &maOKBtn, 0, aBtnSize );
+    xButtons->addWindow( &maCancelBtn, 0, aBtnSize );
 
     Link aLink = LINK( this, SfxPasswordDialog, EditModifyHdl );
     maPasswordED.SetModifyHdl( aLink );


More information about the Libreoffice-commits mailing list