summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-15 10:18:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-15 10:18:14 +0100
commit577e90091bc72eb72b1432611c82cbdaf18b557c (patch)
tree6222effac327d939d01de08bff3d6ee8391e76f9 /svgio
parentcfe98bd195e7dd831e1f08dd1e34653ab4f1f152 (diff)
svgio: Use appropriate OUString functions on string constants
Change-Id: Idce7768fd43453703ba758d9fddf26e0b7e5cc76
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx2
-rw-r--r--svgio/source/svgreader/svgnode.cxx8
2 files changed, 3 insertions, 7 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index ff9237cf47a0..7b8e4cb252e8 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -246,7 +246,7 @@ namespace svgio
// 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'.
// 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);
}
diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index e4038e049362..3066fc0a5239 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -59,9 +59,7 @@ namespace svgio
if(rId.getLength())
{
const OUString aNewConcatenated(
- OUString::createFromAscii("#") +
- rId +
- aConcatenated);
+ "#" + rId + aConcatenated);
if(pParent)
{
@@ -113,9 +111,7 @@ namespace svgio
for(sal_uInt32 a(0); a < aParts.size(); a++)
{
const OUString aNewConcatenated(
- OUString::createFromAscii(".") +
- aParts[a] +
- aConcatenated);
+ "." + aParts[a] + aConcatenated);
if(pParent)
{