summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgcharacternode.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 16:21:34 +0200
committerNoel Grandin <noel@peralex.com>2013-11-21 13:29:29 +0200
commit89633c6da1cde46983926dcc2e0f8e08de0e9378 (patch)
tree243f049b51b9f404e8697781dfada6c20ff0fee1 /svgio/source/svgreader/svgcharacternode.cxx
parent2a46a01902bccd1f025cce92ce6d32efbabf6825 (diff)
remove unnecessary use of OUString::createFromAscii
Convert code like this: OUString aStrSpacing(OUString::createFromAscii("spacing")); to: OUString aStrSpacing("spacing"); Change-Id: Ia2b7d6b42f35d33cfe587a0d6668030f3537fa6d
Diffstat (limited to 'svgio/source/svgreader/svgcharacternode.cxx')
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index 392f886435f8..1e9fc1e9c5ca 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -130,14 +130,11 @@ namespace svgio
{
if(!aContent.isEmpty())
{
- static OUString aStrSpacing(OUString::createFromAscii("spacing"));
- static OUString aStrSpacingAndGlyphs(OUString::createFromAscii("spacingAndGlyphs"));
-
- if(aContent.match(aStrSpacing))
+ if(aContent.startsWith("spacing"))
{
setLengthAdjust(true);
}
- else if(aContent.match(aStrSpacingAndGlyphs))
+ else if(aContent.startsWith("spacingAndGlyphs"))
{
setLengthAdjust(false);
}