[Libreoffice-commits] .: 2 commits - editeng/source svl/source

Christina Rossmanith crossmanith at kemper.freedesktop.org
Thu Jan 5 13:10:57 PST 2012


 editeng/source/editeng/impedit3.cxx |    7 ++++---
 svl/source/memtools/svarray.cxx     |    1 -
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 764040ac4e931e3460d0bd78906a7e624c994223
Author: Christina Rossmanith <ChrRossmanith at web.de>
Date:   Tue Nov 8 15:09:12 2011 +0100

    removed unused #define_SVSTDARR_sal_uI(n)t16S(SORT)

diff --git a/svl/source/memtools/svarray.cxx b/svl/source/memtools/svarray.cxx
index 5d92043..ee37bdf 100644
--- a/svl/source/memtools/svarray.cxx
+++ b/svl/source/memtools/svarray.cxx
@@ -35,7 +35,6 @@
 #define _SVSTDARR_STRINGSSORTDTOR
 #define _SVSTDARR_STRINGSISORT
 #define _SVSTDARR_STRINGSISORTDTOR
-#define _SVSTDARR_sal_uInt16SSORT
 
 #define _SVSTDARR_BYTESTRINGS
 #define _SVSTDARR_BYTESTRINGSDTOR
commit 62d86ff5501a924528b9b2794b18af16b3ddcbf0
Author: Christina Rossmanith <ChrRossmanith at web.de>
Date:   Tue Nov 8 08:42:27 2011 +0100

    Remove Fill() usage

diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 9c2a800..c964aeb 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -77,6 +77,8 @@
 #include <i18npool/mslangid.hxx>
 
 #include <comphelper/processfactory.hxx>
+#include <rtl/ustrbuf.hxx>
+#include <comphelper/string.hxx>
 
 using ::rtl::OUString;
 using namespace ::com::sun::star;
@@ -3289,12 +3291,11 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta
                                                 aTmpFont.SetEscapement( 0 );
                                                 aTmpFont.SetPropr( 100 );
                                                 aTmpFont.SetPhysFont( pOutDev );
-                                                String aBlanks;
-                                                aBlanks.Fill( nTextLen, ' ' );
+                                                rtl::OUStringBuffer aBlanks = comphelper::string::padToLength( aBlanks, (sal_Int32) nTextLen, ' ' );
                                                 Point aUnderlinePos( aOutPos );
                                                 if ( nOrientation )
                                                     aUnderlinePos = lcl_ImplCalcRotatedPos( aTmpPos, aOrigin, nSin, nCos );
-                                                pOutDev->DrawStretchText( aUnderlinePos, aSz.Width(), aBlanks, 0, nTextLen );
+                                                pOutDev->DrawStretchText( aUnderlinePos, aSz.Width(), aBlanks.makeStringAndClear(), 0, nTextLen );
 
                                                 aTmpFont.SetUnderline( UNDERLINE_NONE );
                                                 if ( !nOrientation )


More information about the Libreoffice-commits mailing list