summaryrefslogtreecommitdiff
path: root/filter/source/xsltdialog/typedetectionexport.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-06-29 16:15:08 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-06-29 16:23:24 +0200
commit955ebe83a8e57a776044b7f7749b4701ba82b8f4 (patch)
tree1ead4da716db8f19b27d0cec2785301935ceea9d /filter/source/xsltdialog/typedetectionexport.cxx
parent318f2b64cc32038b2ab1b18b4a13e3f41e1e35ff (diff)
String to OUString and cleanup
Change-Id: Idc18c1a6a64edea3399c8747ec0f096a2f964b68
Diffstat (limited to 'filter/source/xsltdialog/typedetectionexport.cxx')
-rw-r--r--filter/source/xsltdialog/typedetectionexport.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/filter/source/xsltdialog/typedetectionexport.cxx b/filter/source/xsltdialog/typedetectionexport.cxx
index a7593c2ff918..37e1243f9e20 100644
--- a/filter/source/xsltdialog/typedetectionexport.cxx
+++ b/filter/source/xsltdialog/typedetectionexport.cxx
@@ -53,7 +53,7 @@ static OUString createRelativeURL( const OUString& rFilterName, const OUString&
OUString aName( aURL.GetName() );
if( aName.isEmpty() )
{
- sal_Int32 nPos = rURL.lastIndexOf( sal_Unicode( '/' ) );
+ sal_Int32 nPos = rURL.lastIndexOf( '/' );
if( nPos == -1 )
{
aName = rURL;
@@ -64,11 +64,7 @@ static OUString createRelativeURL( const OUString& rFilterName, const OUString&
}
}
- OUString aRelURL( "vnd.sun.star.Package:" );
- aRelURL += rFilterName;
- aRelURL += OUString( sal_Unicode( '/' ) );
- aRelURL += aName;
- return aRelURL;
+ return OUString( "vnd.sun.star.Package:" + rFilterName + "/" + aName );
}
else
{
@@ -125,7 +121,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML
pAttrList->AddAttribute( sName, sCdataAttribute, pFilter->maType );
xHandler->ignorableWhitespace ( sWhiteSpace );
xHandler->startElement( sNode, xAttrList );
- OUString sValue( sal_Unicode('0') );
+ OUString sValue("0");
sValue += sComma;
sValue += sComma;
if( !pFilter->maDocType.isEmpty() )
@@ -170,7 +166,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML
xHandler->startElement( sNode, xAttrList );
addLocaleProperty( xHandler, sUIName, pFilter->maInterfaceName );
- OUString sValue( sal_Unicode('0') );
+ OUString sValue("0");
sValue += sComma;
sValue += pFilter->maType;
sValue += sComma,
@@ -199,7 +195,7 @@ void TypeDetectionExporter::doExport( Reference< XOutputStream > xOS, const XML
sValue += sDelim;
sValue += pFilter->maComment;
sValue += sComma;
- sValue += OUString( sal_Unicode('0') );
+ sValue += "0";
sValue += sComma;
sValue += createRelativeURL( pFilter->maFilterName, pFilter->maImportTemplate );
addProperty( xHandler, sData, sValue );