diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-05-17 11:28:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-05-17 21:03:12 +0200 |
commit | 649313625b94e6b879848fc19b607b74375100bf (patch) | |
tree | daa8993fe967cbfdad18aabac1635f7ded1977c2 /reportdesign | |
parent | 3a667101987ccbc75024942d779c8c62a4d0a296 (diff) |
New o3tl::temporary to simplify calls of std::modf
...that ignore the out-parameter integral part
Change-Id: I05f07c1a8909023232f8aecf75ea5541d4eb81ca
Reviewed-on: https://gerrit.libreoffice.org/54474
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlControlProperty.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/filter/xml/xmlControlProperty.cxx b/reportdesign/source/filter/xml/xmlControlProperty.cxx index e14b86e0e6dc..a4f0741448b3 100644 --- a/reportdesign/source/filter/xml/xmlControlProperty.cxx +++ b/reportdesign/source/filter/xml/xmlControlProperty.cxx @@ -24,6 +24,7 @@ #include "xmlControlProperty.hxx" +#include <o3tl/temporary.hxx> #include <rtl/strbuf.hxx> #include <sax/tools/converter.hxx> #include "xmlfilter.hxx" @@ -272,8 +273,7 @@ Any OXMLControlProperty::convertString(const css::uno::Type& _rExpectedType, con { case TYPE_DATE: { - double dummy; - OSL_ENSURE(std::modf(nValue, &dummy) == 0, + OSL_ENSURE(std::modf(nValue, &o3tl::temporary(double())) == 0, "OPropertyImport::convertString: a Date value with a fractional part?"); (void)dummy; aReturn <<= implGetDate(nValue); |