diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 08:37:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-04 07:34:41 +0000 |
commit | 81824d135987712b57e3c81a26f72ae4fabb4031 (patch) | |
tree | f4268731e5af7b5c2658ecab0dcb7d2caa3c2a4d /xmloff/source/core | |
parent | 62dbe2e6eb30660f252b4e2c048f4aecf28e41c6 (diff) |
loplugin:stringconstant
Change-Id: I6cc11a273902da8acdb6adbccccc31fe30ab274e
Reviewed-on: https://gerrit.libreoffice.org/19768
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 97760c855911..1bbbb98dceae 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -1370,8 +1370,7 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass ) Any aAny; aAny <<= GetXMLToken( eClass ); - xConvPropSet->setPropertyValue( - OUString("Class"), aAny ); + xConvPropSet->setPropertyValue( "Class", aAny ); Reference< XPropertySet > xPropSet = mxExportInfo.is() diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 27562d63e362..eaded066044b 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -301,7 +301,7 @@ bool SvXMLUnitConverter::setNullDate(const com::sun::star::uno::Reference <com:: if (xNumberFormatsSupplier.is()) { const com::sun::star::uno::Reference <com::sun::star::beans::XPropertySet> xPropertySet = xNumberFormatsSupplier->getNumberFormatSettings(); - return xPropertySet.is() && (xPropertySet->getPropertyValue(OUString(XML_NULLDATE)) >>= m_pImpl->m_aNullDate); + return xPropertySet.is() && (xPropertySet->getPropertyValue(XML_NULLDATE) >>= m_pImpl->m_aNullDate); } return false; } |