summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-23 14:46:43 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 10:45:00 +0200
commit4e6410ba0155d4c2ac539fd37f75aa72d489e206 (patch)
treed6200cbd141bb37350a42dd1ba833fc831f5dd68 /svx
parentadef956348b9ad0420a482367f34ca1df81ab159 (diff)
loplugin:constantfunction: unotools
Change-Id: Icf543973dc9edde270016c8af7e4c08c57eff650
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdattr.cxx2
-rw-r--r--svx/source/svdraw/svdmodel.cxx8
-rw-r--r--svx/source/svdraw/svdtrans.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index f7c67d36d284..281ccf7857c8 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -870,7 +870,7 @@ bool SdrAngleItem::GetPresentation(
pIntlWrapper = pMyIntlWrapper = new IntlWrapper(
Application::GetSettings().GetLanguageTag() );
- if(pIntlWrapper->getLocaleData()->isNumLeadingZero())
+ if(LocaleDataWrapper::isNumLeadingZero())
nCount++;
while(aText.getLength() < nCount)
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 9e59338bdbd3..69aadc58c094 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1224,7 +1224,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I
if( -1 == nNumDigits )
{
- nNumDigits = rLoc.getNumDigits();
+ nNumDigits = LocaleDataWrapper::getNumDigits();
}
sal_Int32 nKomma(nUIUnitKomma);
@@ -1267,7 +1267,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I
// if necessary, add zeros before the decimal point
sal_Int32 nAnz = nKomma - aBuf.getLength();
- if(nAnz >= 0 && rLoc.isNumLeadingZero())
+ if(nAnz >= 0 && LocaleDataWrapper::isNumLeadingZero())
nAnz++;
for(sal_Int32 i=0; i<nAnz; i++)
@@ -1282,7 +1282,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I
if(nKomma > 0)
aBuf.insert(nVorKomma, cDec);
- if(!rLoc.isNumTrailingZeros())
+ if(!LocaleDataWrapper::isNumTrailingZeros())
{
// Remove all trailing zeros.
while (!aBuf.isEmpty() && aBuf[aBuf.getLength()-1] == '0')
@@ -1338,7 +1338,7 @@ void SdrModel::TakeAngleStr(long nAngle, OUString& rStr, bool bNoDegChar) const
const LocaleDataWrapper& rLoc = aSysLoc.GetLocaleData();
sal_Int32 nAnz = 2;
- if(rLoc.isNumLeadingZero())
+ if(LocaleDataWrapper::isNumLeadingZero())
nAnz++;
while(aBuf.getLength() < nAnz)
diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx
index e4c0b85ffff5..1cb007867eee 100644
--- a/svx/source/svdraw/svdtrans.cxx
+++ b/svx/source/svdraw/svdtrans.cxx
@@ -867,7 +867,7 @@ void SdrFormatter::TakeStr(long nVal, OUString& rStr) const
aStr.insert(0, aNullCode);
// remove superfluous decimal points
- sal_Int32 nNumDigits(rLoc.getNumDigits());
+ sal_Int32 nNumDigits(LocaleDataWrapper::getNumDigits());
sal_Int32 nWeg(nC - nNumDigits);
if(nWeg > 0)