summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-11-21 21:11:17 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-11-21 21:11:50 +0000
commit679628f248a94d54e78c8531d13e65f3ae221876 (patch)
treef47fc1f321cabe47926e0f91e31c15eb88b336b4 /svtools
parent83833aa79c4dcf50cfd3b230a9c33fa91302ae2f (diff)
initialize nCheckPos before passing it, undefined to SvNumberFormatter
Change-Id: I8e80de82354ed0adf66b39175a5c9b993c541821
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/fmtfield.cxx6
1 files 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);