summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 08:54:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 14:46:24 +0200
commitc8226655a8d838d15af7de3ba1fa5c47546b6ada (patch)
tree4100bc5b29edb72bd3f4ffeeccfbf6879ac8f801 /sc/source/ui/view/cellsh2.cxx
parentfec9c3d6f272d45a73dd4dad390a69e444ffc9e2 (diff)
rather return ref from getLocaleDataPtr
since we never return a nullptr, and rename to reflect that Change-Id: I694b5198f663842d1362504d60e7191e450a08ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122224 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/cellsh2.cxx')
-rw-r--r--sc/source/ui/view/cellsh2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 4d4c3b728fa0..08526a2fa34f 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -872,7 +872,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
if (rDoc.GetFormatTable()->IsNumberFormat(aTemp1, nNumIndex, nVal))
aExpr1 = ::rtl::math::doubleToUString( nVal,
rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max,
- ScGlobal::getLocaleDataPtr()->getNumDecimalSep()[0], true);
+ ScGlobal::getLocaleData().getNumDecimalSep()[0], true);
else
aExpr1 = aTemp1;
}
@@ -889,7 +889,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
if (rDoc.GetFormatTable()->IsNumberFormat(aTemp2, nNumIndex, nVal))
aExpr2 = ::rtl::math::doubleToUString( nVal,
rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max,
- ScGlobal::getLocaleDataPtr()->getNumDecimalSep()[0], true);
+ ScGlobal::getLocaleData().getNumDecimalSep()[0], true);
else
aExpr2 = aTemp2;
if ( eMode == SC_VALID_TIME ) {