From 679628f248a94d54e78c8531d13e65f3ae221876 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 21 Nov 2012 21:11:17 +0000 Subject: initialize nCheckPos before passing it, undefined to SvNumberFormatter Change-Id: I8e80de82354ed0adf66b39175a5c9b993c541821 --- svtools/source/control/fmtfield.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx index 9bb3c4f7adfc..cf73f480ccfe 100644 --- a/svtools/source/control/fmtfield.cxx +++ b/svtools/source/control/fmtfield.cxx @@ -715,8 +715,8 @@ void FormattedField::SetThousandsSep(sal_Bool _bUseSeparator) // generate a new format ... OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, _bUseSeparator, IsRed, nPrecision, nAnzLeading); // ... and introduce it to the formatter - sal_Int32 nCheckPos; - sal_uInt32 nNewKey; + sal_Int32 nCheckPos = 0; + sal_uInt32 nNewKey; short nType; ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); @@ -758,7 +758,7 @@ void FormattedField::SetDecimalDigits(sal_uInt16 _nPrecision) // generate a new format ... OUString sFmtDescription = ImplGetFormatter()->GenerateFormat(m_nFormatKey, eLang, bThousand, IsRed, _nPrecision, nAnzLeading); // ... and introduce it to the formatter - sal_Int32 nCheckPos; + sal_Int32 nCheckPos = 0; sal_uInt32 nNewKey; short nType; ImplGetFormatter()->PutEntry(sFmtDescription, nCheckPos, nType, nNewKey, eLang); -- cgit