Kaydet (Commit) d19482e1 authored tarafından Mike Kaganski's avatar Mike Kaganski

Use o3tl::temporary

Change-Id: Ifbe8de75aa0000eab9403b8e6366ecd927851c32
Reviewed-on: https://gerrit.libreoffice.org/58894
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 0a635939
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <editeng/boxitem.hxx> #include <editeng/boxitem.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <o3tl/temporary.hxx>
#include <sfx2/bindings.hxx> #include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
#include <sfx2/lokhelper.hxx> #include <sfx2/lokhelper.hxx>
...@@ -685,8 +686,7 @@ void ScTabViewShell::UpdateInputHandler( bool bForce /* = sal_False */, bool bSt ...@@ -685,8 +686,7 @@ void ScTabViewShell::UpdateInputHandler( bool bForce /* = sal_False */, bool bSt
// unintentionally interpreted as a number, and to show the // unintentionally interpreted as a number, and to show the
// user that it is a string (#35060#). // user that it is a string (#35060#).
//! also for numberformat "Text"? -> then remove when editing //! also for numberformat "Text"? -> then remove when editing
double fDummy; if ( pFormatter->IsNumberFormat(aString, nNumFmt, o3tl::temporary(double())) )
if ( pFormatter->IsNumberFormat(aString, nNumFmt, fDummy) )
aString = "'" + aString; aString = "'" + aString;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment