[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 24 15:16:23 UTC 2020


 editeng/source/uno/unotext.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c3cd2daa572d66d9a03c176573494b11ae388c60
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jun 24 15:02:19 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jun 24 17:15:48 2020 +0200

    Remove obsolete comments about '\r' on old Mac OS
    
    (and where sticking to numeric '\x0D' is probably cleaner anyway)
    
    Change-Id: I614c57a4de74bf688c498e9bff043ca2eee04cb2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97033
    Tested-by: Stephan Bergmann <sbergman at redhat.com>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 53f3088b19be..75854d802f42 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -1774,7 +1774,7 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text
     {
     case text::ControlCharacter::PARAGRAPH_BREAK:
     {
-        const OUString aText( u'\x000D' );  // '\r' does not work on Mac
+        const OUString aText( u'\x000D' );
         insertString( xRange, aText, bAbsorb );
 
         return;
@@ -1824,7 +1824,7 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text
             aRange.nEndPos  = aRange.nStartPos;
 
             pRange->SetSelection( aRange );
-            const OUString aText( u'\x000D' );  // '\r' does not work on Mac
+            const OUString aText( u'\x000D' );
             pRange->setString( aText );
 
             aRange.nStartPos = 0;


More information about the Libreoffice-commits mailing list