[Libreoffice-commits] .: sd/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Mar 1 12:40:30 PST 2011


 sd/source/filter/eppt/epptso.cxx |    2 +-
 sd/source/ui/unoidl/unosrch.cxx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d960a2691c4fe71ad4b67ded52dc0ef81106b2a7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 1 14:55:25 2011 +0000

    avoid implicit cast

diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 051cafc..8b89cc6 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -2874,7 +2874,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a
                                 mpPptEscherEx->AddAtom( 4, EPP_TextHeaderAtom );
                                 *mpStrm << (sal_uInt32)EPP_TEXTTYPE_Title;
                                 mpPptEscherEx->AddAtom( mnTextSize << 1, EPP_TextCharsAtom );
-                                const sal_Unicode* pString = aUString;
+                                const sal_Unicode* pString = aUString.getStr();
                                 for ( sal_uInt32 i = 0; i < mnTextSize; i++ )
                                 {
                                     nChar = pString[ i ];       // 0xa -> 0xb weicher Zeilenumbruch
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index 208ec1e..b3e3d81 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -493,7 +493,7 @@ uno::Reference< text::XTextRange >  SdUnoSearchReplaceShape::Search( uno::Refere
     sal_Int32* pConvertPara = new sal_Int32[nTextLen+2];
 
     int ndbg = 0;
-    const sal_Unicode* pText = aText;
+    const sal_Unicode* pText = aText.getStr();
 
     sal_Int32* pPos = pConvertPos;
     sal_Int32* pPara = pConvertPara;


More information about the Libreoffice-commits mailing list