diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-15 11:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 10:29:31 +0200 |
commit | 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch) | |
tree | 6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /filter/source/xsltfilter | |
parent | 2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff) |
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'filter/source/xsltfilter')
-rw-r--r-- | filter/source/xsltfilter/XSLTFilter.cxx | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index 140713fa0635..ff9aca316e62 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -319,13 +319,13 @@ namespace XSLT Sequence<Any> args(3); NamedValue nv; - nv.Name = OUString( "StylesheetURL" ); + nv.Name = "StylesheetURL"; nv.Value <<= expandUrl(udStyleSheet); args[0] <<= nv; - nv.Name = OUString( "SourceURL" ); + nv.Name = "SourceURL"; nv.Value <<= aURL; args[1] <<= nv; - nv.Name = OUString( "SourceBaseURL" ); + nv.Name = "SourceBaseURL"; nv.Value <<= OUString(INetURLObject(aURL).getBase()); args[2] <<= nv; @@ -461,16 +461,16 @@ namespace XSLT // create transformer Sequence<Any> args(4); NamedValue nv; - nv.Name = OUString( "StylesheetURL" ); + nv.Name = "StylesheetURL"; nv.Value <<= expandUrl(udStyleSheet); args[0] <<= nv; - nv.Name = OUString( "TargetURL" ); + nv.Name = "TargetURL"; nv.Value <<= sURL; args[1] <<= nv; - nv.Name = OUString( "DoctypePublic" ); + nv.Name = "DoctypePublic"; nv.Value <<= aDoctypePublic; args[2] <<= nv; - nv.Name = OUString( "TargetBaseURL" ); + nv.Name = "TargetBaseURL"; INetURLObject ineturl(sURL); ineturl.removeSegment(); m_aExportBaseUrl = ineturl.GetMainURL(INetURLObject::NO_DECODE); @@ -581,9 +581,7 @@ extern "C" if (rtl_str_compare(pImplName, FILTER_IMPL_NAME) == 0) { Sequence<OUString> serviceNames(1); - serviceNames.getArray()[0] - = OUString( - FILTER_SERVICE_NAME ); + serviceNames.getArray()[0] = FILTER_SERVICE_NAME; css::uno::Reference<XSingleServiceFactory> xFactory( @@ -603,9 +601,7 @@ extern "C" else if (rtl_str_compare(pImplName, TRANSFORMER_IMPL_NAME) == 0) { Sequence<OUString> serviceNames(1); - serviceNames.getArray()[0] - = OUString( - TRANSFORMER_SERVICE_NAME ); + serviceNames.getArray()[0] = TRANSFORMER_SERVICE_NAME; css::uno::Reference<XSingleServiceFactory> xFactory( createSingleFactory( |