Use o3tl::temporary
Change-Id: Ifbe8de75aa0000eab9403b8e6366ecd927851c32
Reviewed-on: https://gerrit.libreoffice.org/58894
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index be358a0..7ae6f75 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;
}
}