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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 26 07:14:05 UTC 2018


 basic/source/sbx/sbxscan.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 538ed5f34886dbaa593e6b8c2dd93bfb3fde392a
Author:     Takeshi Abe <tabe at fixedpoint.jp>
AuthorDate: Mon Dec 24 22:59:13 2018 +0900
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Dec 26 08:13:42 2018 +0100

    basic: Spare temporary variable
    
    Change-Id: I6c39061e04537c01c87f6cb2f40a35dd0a551a08
    Reviewed-on: https://gerrit.libreoffice.org/65597
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index d0d7cd52326e..6b785b3fdca8 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -884,11 +884,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
 
         }
         else
-        {
-            OUString aTmpString( rRes );
-            ImpCvtNum( GetDouble(), nComma, aTmpString );
-            rRes = aTmpString;
-        }
+            ImpCvtNum( GetDouble(), nComma, rRes );
         break;
     case SbxSTRING:
         if( pFmt )


More information about the Libreoffice-commits mailing list