diff options
Diffstat (limited to 'sc/source/filter/excel/xepivotxml.cxx')
-rw-r--r-- | sc/source/filter/excel/xepivotxml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xepivotxml.cxx b/sc/source/filter/excel/xepivotxml.cxx index ffa2eb724f84..004f9938a72a 100644 --- a/sc/source/filter/excel/xepivotxml.cxx +++ b/sc/source/filter/excel/xepivotxml.cxx @@ -15,6 +15,7 @@ #include <document.hxx> #include <generalfunction.hxx> +#include <o3tl/temporary.hxx> #include <oox/export/utils.hxx> #include <oox/token/namespaces.hxx> #include <sax/tools/converter.hxx> @@ -263,7 +264,6 @@ void XclExpXmlPivotCaches::SavePivotCacheXml( XclExpXmlStream& rStrm, const Entr double fMin = std::numeric_limits<double>::infinity(), fMax = -std::numeric_limits<double>::infinity(); bool isValueInteger = true; bool isContainsDate = rCache.IsDateDimension(i); - double intpart; for (; it != itEnd; ++it) { ScDPItemData::Type eType = it->GetType(); @@ -275,7 +275,7 @@ void XclExpXmlPivotCaches::SavePivotCacheXml( XclExpXmlStream& rStrm, const Entr fMax = std::max(fMax, fVal); // Check if all values are integers - if (isValueInteger && (modf(fVal, &intpart) != 0.0)) + if (isValueInteger && (modf(fVal, &o3tl::temporary(double())) != 0.0)) { isValueInteger = false; } |