[Libreoffice-commits] .: svl/source

2012-01-05 Thread Christina Rossmanith
 svl/source/memtools/svarray.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6fd08caf5f15fba48ea4600ab57acd34f9600017
Author: Christina Rossmanith 
Date:   Tue Nov 8 20:29:24 2011 +0100

Translated German comments

diff --git a/svl/source/memtools/svarray.cxx b/svl/source/memtools/svarray.cxx
index ee37bdf..e49af56 100644
--- a/svl/source/memtools/svarray.cxx
+++ b/svl/source/memtools/svarray.cxx
@@ -60,7 +60,7 @@ SV_IMPL_PTRARR( SvStringsDtor, StringPtr )
 
 //  strings -
 
-// Array mit anderer Seek-Methode!
+// Array with different Seek method
 _SV_IMPL_SORTAR_ALG( SvStringsISort, StringPtr )
 void SvStringsISort::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL )
 {
@@ -107,7 +107,7 @@ sal_Bool SvStringsISort::Seek_Entry( const StringPtr aE, 
sal_uInt16* pP ) const
 
 //  strings -
 
-// Array mit anderer Seek-Methode!
+// Array with different Seek method
 _SV_IMPL_SORTAR_ALG( SvStringsISortDtor, StringPtr )
 void SvStringsISortDtor::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL )
 {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-05 Thread Christina Rossmanith
 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 
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 
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 
 
 #include 
+#include 
+#include 
 
 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 )
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits