[Libreoffice-commits] .: 2 commits - accessibility/source sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 01:46:56 PDT 2012


 accessibility/source/standard/vclxaccessibleedit.cxx |    6 ++++--
 sfx2/source/dialog/dinfdlg.cxx                       |    4 +---
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit d6279f57e0a61aa5ab9b15a631cb3f76bc072245
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 26 20:45:38 2012 +0100

    useless sTEST and side-effect-less methd call
    
    Change-Id: I0b3fd9f951c286fbd6be7d9e5b404d37b7573a68

diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 79feb0c..ee59b5e 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -2311,8 +2311,6 @@ CustomPropertiesControl::CustomPropertiesControl( Window* pParent, const ResId&
 
     FreeResource();
 
-    XubString sTEST = m_aHeaderBar.GetItemText( HI_NAME );
-
     m_aPropertiesWin.InitControls( &m_aHeaderBar, &m_aVertScroll );
     m_aPropertiesWin.SetRemovedHdl( LINK( this, CustomPropertiesControl, RemovedHdl ) );
 
commit d3788f3276c55c9996fb4ed83cebe7e30519ce2f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 26 20:44:58 2012 +0100

    UniString::Fill->padToLength(OUStringBuffer
    
    Change-Id: I61a562982af75fd3141b4b5d55840c0ebc94306c

diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index 2fb078a..95fda2b 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -41,6 +41,7 @@
 #include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
 #include <cppuhelper/typeprovider.hxx>
 #include <comphelper/sequence.hxx>
+#include <comphelper/string.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/window.hxx>
 #include <vcl/edit.hxx>
@@ -154,8 +155,9 @@ OUString VCLXAccessibleEdit::implGetText()
             xub_Unicode cEchoChar = pEdit->GetEchoChar();
             if ( !cEchoChar )
                 cEchoChar = '*';
-            XubString sTmp;
-            aText = sTmp.Fill( (sal_uInt16)aText.getLength(), cEchoChar );
+            OUStringBuffer sTmp;
+            aText = comphelper::string::padToLength(sTmp, aText.getLength(),
+                cEchoChar).makeStringAndClear();
         }
     }
 
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 78dbfe3..79feb0c 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -884,7 +884,7 @@ IMPL_LINK_NOARG(SfxDocumentPage, DeleteHdl)
         now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
         now.GetDay(), now.GetMonth(), now.GetYear() );
     aCreateValFt.SetText( ConvertDateTime_Impl( aName, uDT, aLocaleWrapper ) );
-    XubString aEmpty;
+    OUString aEmpty;
     aChangeValFt.SetText( aEmpty );
     aPrintValFt.SetText( aEmpty );
     const Time aTime( 0 );


More information about the Libreoffice-commits mailing list