diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-03 14:03:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-05 08:44:19 +0200 |
commit | 705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch) | |
tree | 97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx | |
parent | b7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff) |
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.
Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx')
-rw-r--r-- | reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx index 7973b073286c..6742e34bf82d 100644 --- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx +++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx @@ -43,7 +43,7 @@ void lcl_exportPrettyPrinting(const uno::Reference< xml::sax::XDocumentHandler > SvtSaveOptions aSaveOpt; if ( aSaveOpt.IsPrettyPrinting() ) { - static const OUString s_sWhitespaces(" "); + static const char s_sWhitespaces[] = " "; _xDelegatee->ignorableWhitespace(s_sWhitespaces); } } @@ -279,7 +279,7 @@ void SAL_CALL ExportDocumentHandler::characters(const OUString & aChars) throw ( } else if ( m_bExportChar ) { - static const OUString s_sZero("0"); + static const char s_sZero[] = "0"; m_xDelegatee->characters(s_sZero); } } @@ -367,16 +367,16 @@ void ExportDocumentHandler::exportTableRows() const OUString sValueType( lcl_createAttribute(XML_NP_OFFICE, XML_VALUE_TYPE) ); - const static OUString s_sFieldPrefix("field:["); - const static OUString s_sFieldPostfix("]"); + static const char s_sFieldPrefix[] = "field:["; + static const char s_sFieldPostfix[] = "]"; const OUString sCell( lcl_createAttribute(XML_NP_TABLE, XML_TABLE_CELL) ); const OUString sP( lcl_createAttribute(XML_NP_TEXT, XML_P) ); const OUString sFtext(lcl_createAttribute(XML_NP_RPT,XML_FORMATTED_TEXT) ); const OUString sRElement(lcl_createAttribute(XML_NP_RPT,XML_REPORT_ELEMENT) ); const OUString sRComponent( lcl_createAttribute(XML_NP_RPT,XML_REPORT_COMPONENT) ) ; const OUString sFormulaAttrib( lcl_createAttribute(XML_NP_RPT,XML_FORMULA) ); - const static OUString s_sString("string"); - const static OUString s_sFloat("float"); + static const char s_sString[] = "string"; + static const char s_sFloat[] = "float"; SvXMLAttributeList* pCellAtt = new SvXMLAttributeList(); uno::Reference< xml::sax::XAttributeList > xCellAtt = pCellAtt; |