From 1a8ac8b2df40edd0b17825e2ca0cb170061d0ff1 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 25 Nov 2012 00:33:44 -0600 Subject: String and OUString cleaning in xmloff Change-Id: I85d7fd7733814c60a048a7f87d43fbcbb83b0eb0 --- xmloff/source/style/styleexp.cxx | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'xmloff/source/style/styleexp.cxx') diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index ef20a9796a7d..2970392078fa 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include "xmloff/xmlnmspe.hxx" #include @@ -42,9 +41,6 @@ #include #include -using ::rtl::OUString; -using ::rtl::OUStringBuffer; - using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::style; @@ -57,7 +53,7 @@ using ::com::sun::star::document::XEventsSupplier; XMLStyleExport::XMLStyleExport( SvXMLExport& rExp, - const ::rtl::OUString& rPoolStyleName, + const OUString& rPoolStyleName, SvXMLAutoStylePoolP *pAutoStyleP ) : rExport( rExp ), sIsPhysical( RTL_CONSTASCII_USTRINGPARAM( "IsPhysical" ) ), @@ -84,7 +80,7 @@ void XMLStyleExport::exportStyleContent( const Reference< XStyle >& ) sal_Bool XMLStyleExport::exportStyle( const Reference< XStyle >& rStyle, - const OUString& rXMLFamily, + const OUString& rXMLFamily, const UniReference < SvXMLExportPropertyMapper >& rPropMapper, const Reference< XNameAccess >& xStyles, const OUString* pPrefix ) @@ -396,12 +392,12 @@ void XMLStyleExport::exportStyleFamily( // If next styles are supported and used styles should be exported only, // the next style may be unused but has to be exported, too. In this case // the names of all exported styles are remembered. - boost::scoped_ptr > pExportedStyles(0); + boost::scoped_ptr > pExportedStyles(0); sal_Bool bFirstStyle = sal_True; - const uno::Sequence< ::rtl::OUString> aSeq = xStyles->getElementNames(); - const ::rtl::OUString* pIter = aSeq.getConstArray(); - const ::rtl::OUString* pEnd = pIter + aSeq.getLength(); + const uno::Sequence< OUString> aSeq = xStyles->getElementNames(); + const OUString* pIter = aSeq.getConstArray(); + const OUString* pEnd = pIter + aSeq.getLength(); for(;pIter != pEnd;++pIter) { Reference< XStyle > xStyle; @@ -434,7 +430,7 @@ void XMLStyleExport::exportStyleFamily( xPropSet->getPropertySetInfo(); if( xPropSetInfo->hasPropertyByName( sFollowStyle ) ) - pExportedStyles.reset(new std::set()); + pExportedStyles.reset(new std::set()); bFirstStyle = sal_False; } @@ -487,7 +483,7 @@ void XMLStyleExport::exportStyleFamily( OUString sNextName; xPropSet->getPropertyValue( sFollowStyle ) >>= sNextName; - String sTmp( sNextName ); + OUString sTmp( sNextName ); // if the next style hasn't been exported by now, export it now // and remember its name. if( xStyle->getName() != sNextName && -- cgit v1.2.3