[Libreoffice-commits] core.git: sd/inc sd/source

MÁTÉ Gergely sportember at caesar.elte.hu
Fri Jul 26 15:30:49 PDT 2013


 sd/inc/textapi.hxx                             |    2 +-
 sd/source/core/text/textapi.cxx                |    8 ++++----
 sd/source/ui/annotations/annotationmanager.cxx |    6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 2f9d2489791ee97a169df0cea932ed7f9ba1e66c
Author: MÁTÉ Gergely <sportember at caesar.elte.hu>
Date:   Thu Jul 25 22:56:53 2013 +0200

    OUString conversion in sd in textapi.hxx and related files
    
    Change-Id: Id080ae9aaf08de1b0903ee12dc1082c7e531af0b
    Reviewed-on: https://gerrit.libreoffice.org/5114
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/sd/inc/textapi.hxx b/sd/inc/textapi.hxx
index 12a67be..ceb27cf 100644
--- a/sd/inc/textapi.hxx
+++ b/sd/inc/textapi.hxx
@@ -46,7 +46,7 @@ public:
 
     OutlinerParaObject* CreateText();
     void                SetText( OutlinerParaObject& rText );
-    String              GetText();
+    OUString            GetText();
 
     static TextApiObject* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >& );
 
diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx
index afe6e80..acd3e86 100644
--- a/sd/source/core/text/textapi.cxx
+++ b/sd/source/core/text/textapi.cxx
@@ -108,7 +108,7 @@ public:
     void                Dispose();
     void                SetText( OutlinerParaObject& rText );
     OutlinerParaObject* CreateText();
-    String              GetText();
+    OUString            GetText();
     SdDrawDocument*     GetDoc() { return pImpl->mpDoc; }
 };
 
@@ -174,7 +174,7 @@ void TextApiObject::SetText( OutlinerParaObject& rText )
     maSelection.nStartPara = EE_PARA_MAX_COUNT;
 }
 
-String TextApiObject::GetText()
+OUString TextApiObject::GetText()
 {
     return mpSource->GetText();
 }
@@ -273,12 +273,12 @@ OutlinerParaObject* TextAPIEditSource::CreateText()
         return 0;
 }
 
-String TextAPIEditSource::GetText()
+OUString TextAPIEditSource::GetText()
 {
     if ( pImpl->mpDoc && pImpl->mpOutliner )
         return pImpl->mpOutliner->GetEditEngine().GetText();
     else
-        return String();
+        return OUString();
 }
 
 } // namespace sd
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 5d95892..5baa4ba 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -469,10 +469,10 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest& rReq )
         aStr.Append( OUString( getAnnotationDateTimeString( xAnnotation ) ) );
         aStr.Append( OUString("): \"") );
 
-        String sQuote( pTextApi->GetText() );
+        OUString sQuote( pTextApi->GetText() );
 
-        if( sQuote.Len() == 0 )
-            sQuote = OUString( "..." );
+        if( sQuote.isEmpty() )
+            sQuote = "...";
         aStr.Append( sQuote );
         aStr.Append( OUString("\"\n") );
 


More information about the Libreoffice-commits mailing list