svgio: Use appropriate OUString functions on string constants

Change-Id: Idce7768fd43453703ba758d9fddf26e0b7e5cc76
This commit is contained in:
Stephan Bergmann
2014-12-15 10:18:14 +01:00
parent cfe98bd195
commit 577e90091b
2 changed files with 3 additions and 7 deletions

View File

@@ -246,7 +246,7 @@ namespace svgio
// of a SVG export with font embedding. Remove this to make font matching work. This // of a SVG export with font embedding. Remove this to make font matching work. This
// is pretty safe since there should be no font family names ending on ' embedded'. // is pretty safe since there should be no font family names ending on ' embedded'.
// Remove again when FontEmbedding is implemented in SVG import // Remove again when FontEmbedding is implemented in SVG import
if(aFontFamily.endsWithAsciiL(" embedded", 9)) if(aFontFamily.endsWith(" embedded"))
{ {
aFontFamily = aFontFamily.copy(0, aFontFamily.getLength() - 9); aFontFamily = aFontFamily.copy(0, aFontFamily.getLength() - 9);
} }

View File

@@ -59,9 +59,7 @@ namespace svgio
if(rId.getLength()) if(rId.getLength())
{ {
const OUString aNewConcatenated( const OUString aNewConcatenated(
OUString::createFromAscii("#") + "#" + rId + aConcatenated);
rId +
aConcatenated);
if(pParent) if(pParent)
{ {
@@ -113,9 +111,7 @@ namespace svgio
for(sal_uInt32 a(0); a < aParts.size(); a++) for(sal_uInt32 a(0); a < aParts.size(); a++)
{ {
const OUString aNewConcatenated( const OUString aNewConcatenated(
OUString::createFromAscii(".") + "." + aParts[a] + aConcatenated);
aParts[a] +
aConcatenated);
if(pParent) if(pParent)
{ {