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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Aug 12 07:45:25 UTC 2018


 sc/source/ui/view/tabvwsha.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d19482e191b8839f3b552e3b6e5e91ead70d565f
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Aug 12 08:31:25 2018 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Aug 12 09:45:04 2018 +0200

    Use o3tl::temporary
    
    Change-Id: Ifbe8de75aa0000eab9403b8e6366ecd927851c32
    Reviewed-on: https://gerrit.libreoffice.org/58894
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index be358a073f3b..7ae6f759b2cb 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -22,6 +22,7 @@
 #include <comphelper/lok.hxx>
 #include <editeng/boxitem.hxx>
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
+#include <o3tl/temporary.hxx>
 #include <sfx2/bindings.hxx>
 #include <sfx2/dispatch.hxx>
 #include <sfx2/lokhelper.hxx>
@@ -685,8 +686,7 @@ void ScTabViewShell::UpdateInputHandler( bool bForce /* = sal_False */, bool bSt
                     // unintentionally interpreted as a number, and to show the
                     // user that it is a string (#35060#).
                     //! also for numberformat "Text"? -> then remove when editing
-                    double fDummy;
-                    if ( pFormatter->IsNumberFormat(aString, nNumFmt, fDummy) )
+                    if ( pFormatter->IsNumberFormat(aString, nNumFmt, o3tl::temporary(double())) )
                         aString = "'" + aString;
                 }
             }


More information about the Libreoffice-commits mailing list