summaryrefslogtreecommitdiffstats
path: root/include/xmloff/numehelp.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 21:23:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-01 10:38:26 +0100
commit79bd29fe6d2a383e80d10a9fee1765193eaa0686 (patch)
tree000112176502a01cf30f0532621db3201cc2b89a /include/xmloff/numehelp.hxx
parentcoverity#708214 Uninitialized scalar field (diff)
downloadcore-79bd29fe6d2a383e80d10a9fee1765193eaa0686.tar.gz
core-79bd29fe6d2a383e80d10a9fee1765193eaa0686.zip
coverity#708217 Uninitialized scalar field
Change-Id: I06129c77b87890d45655da9e22a3b7716bc64d0a
Diffstat (limited to 'include/xmloff/numehelp.hxx')
-rw-r--r--include/xmloff/numehelp.hxx24
1 files changed, 17 insertions, 7 deletions
diff --git a/include/xmloff/numehelp.hxx b/include/xmloff/numehelp.hxx
index a90a2b72ac2d..a2a7d75f4a7f 100644
--- a/include/xmloff/numehelp.hxx
+++ b/include/xmloff/numehelp.hxx
@@ -34,13 +34,23 @@ class SvXMLExport;
struct XMLNumberFormat
{
OUString sCurrency;
- sal_Int32 nNumberFormat;
- sal_Int16 nType;
- bool bIsStandard : 1;
- XMLNumberFormat() : nNumberFormat(0), nType(0) {}
- XMLNumberFormat(const OUString& sTempCurrency, sal_Int32 nTempFormat,
- sal_Int16 nTempType) : sCurrency(sTempCurrency), nNumberFormat(nTempFormat),
- nType(nTempType) {}
+ sal_Int32 nNumberFormat;
+ sal_Int16 nType;
+ bool bIsStandard : 1;
+ XMLNumberFormat()
+ : nNumberFormat(0)
+ , nType(0)
+ , bIsStandard(false)
+ {
+ }
+
+ XMLNumberFormat(const OUString& sTempCurrency, sal_Int32 nTempFormat, sal_Int16 nTempType)
+ : sCurrency(sTempCurrency)
+ , nNumberFormat(nTempFormat)
+ , nType(nTempType)
+ , bIsStandard(false)
+ {
+ }
};
struct LessNumberFormat