diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-12-31 10:26:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-04 14:44:33 +0000 |
commit | f14d64fa71565e86c98348f9c54cc6cab53649d8 (patch) | |
tree | 830034b8c4ac9e9bf83f049fabb3138f9a854486 /sw/source/filter/xml/xmltble.cxx | |
parent | 549e900b4b0047b8cb6c236ea50a3fc046e5fb51 (diff) |
these fields can be static constants
Change-Id: Id56e219782d7f858cdeb26232c7aabd4f643c9d9
Reviewed-on: https://gerrit.libreoffice.org/21020
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/filter/xml/xmltble.cxx')
-rw-r--r-- | sw/source/filter/xml/xmltble.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx index 227ea830d9b2..47e6a0b1f41a 100644 --- a/sw/source/filter/xml/xmltble.cxx +++ b/sw/source/filter/xml/xmltble.cxx @@ -62,6 +62,10 @@ using table::XCell; using ::std::vector; using ::std::advance; +// string constants for table cell export +static const char g_sNumberFormat[] = "NumberFormat"; +static const char g_sIsProtected[] = "IsProtected"; + class SwXMLTableColumn_Impl : public SwWriteTableCol { OUString sStyleName; @@ -794,7 +798,7 @@ void SwXMLExport::ExportTableBox( const SwTableBox& rBox, if (xCellPropertySet.is()) { sal_Int32 nNumberFormat = 0; - Any aAny = xCellPropertySet->getPropertyValue(sNumberFormat); + Any aAny = xCellPropertySet->getPropertyValue(g_sNumberFormat); aAny >>= nNumberFormat; if (css::util::NumberFormat::TEXT == nNumberFormat) @@ -814,7 +818,7 @@ void SwXMLExport::ExportTableBox( const SwTableBox& rBox, // else: invalid key; ignore // cell protection - aAny = xCellPropertySet->getPropertyValue(sIsProtected); + aAny = xCellPropertySet->getPropertyValue(g_sIsProtected); if (*static_cast<sal_Bool const *>(aAny.getValue())) { AddAttribute( XML_NAMESPACE_TABLE, XML_PROTECTED, |