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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 15 11:10:03 UTC 2018


 sc/source/ui/unoobj/cellsuno.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit fa7643e0a8f9c12ca02e18f639482db49427ae21
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue Oct 9 09:40:50 2018 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Mon Oct 15 13:09:40 2018 +0200

    Redundant variable
    
    Change-Id: I0ceeea25b35b144e2cb4567939a7e9b01a723320
    Reviewed-on: https://gerrit.libreoffice.org/61569
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 3107100af06b..a21c8a5db6a1 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -6555,8 +6555,7 @@ void ScCellObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, c
         {
             OUString aStrVal;
             aValue >>= aStrVal;
-            OUString aString(aStrVal);
-            SetString_Impl(aString, true, false);   // interpret locally
+            SetString_Impl(aStrVal, true, false);   // interpret locally
         }
         else if ( pEntry->nWID == SC_WID_UNO_FORMRT || pEntry->nWID == SC_WID_UNO_FORMRT2
                   || pEntry->nWID == SC_WID_UNO_CELLCONTENTTYPE )


More information about the Libreoffice-commits mailing list