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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 11 13:33:35 UTC 2019


 basic/source/classes/sbunoobj.cxx |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 3b5dd1d49e3b5d669d020f0b268625b106c1c661
Author:     Yusuf Sonmez <yusufsonmez1995 at gmail.com>
AuthorDate: Sun Feb 10 09:55:20 2019 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Feb 11 14:33:12 2019 +0100

    tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
    
    Change-Id: I84fcc109087fe72cf68cf6cc1b8cf4045488ff46
    Reviewed-on: https://gerrit.libreoffice.org/67601
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 553c6be7360d..e6c1a3e1c06b 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4836,11 +4836,10 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
                     {
                         // by now all properties must be established
                         implCreateAll();
-                        OUStringBuffer aRet;
-                        aRet.append("Methods of object ");
-                        aRet.append( getDbgObjectName() );
-                        aRet.append( "\nNo methods found\n" );
-                        pVar->PutString( aRet.makeStringAndClear() );
+                        OUString aRet = "Methods of object "
+                                      + getDbgObjectName()
+                                      + "\nNo methods found\n";
+                        pVar->PutString( aRet );
                     }
                     return;
                 }


More information about the Libreoffice-commits mailing list