summaryrefslogtreecommitdiff
path: root/drawinglayer/source/tools/emfphelperdata.cxx
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-09-30 21:52:24 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-01 15:58:22 +0200
commit50da5d0d1c5bdfbb9a2006e77a02519d0f39740f (patch)
treee37dfd06bfafbfe69fe8845fecf4cf34900ce598 /drawinglayer/source/tools/emfphelperdata.cxx
parent22e748e68a87e1b470146eacad374c7dfef74f5a (diff)
simplify some OUString compareTo calls
to either startsWith or == or != Change-Id: I595dd9d89d32134827980c4ba10f88584430137d Reviewed-on: https://gerrit.libreoffice.org/42988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/tools/emfphelperdata.cxx')
-rw-r--r--drawinglayer/source/tools/emfphelperdata.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx
index 513b8fbce930..419cd778f7be 100644
--- a/drawinglayer/source/tools/emfphelperdata.cxx
+++ b/drawinglayer/source/tools/emfphelperdata.cxx
@@ -1225,7 +1225,7 @@ namespace emfplushelper
font->family, // font family
emptyString, // (no) font style
font->Bold() ? 8u : 1u, // weight: 8 = bold
- font->family.compareTo("SYMBOL") == 0, // symbol
+ font->family == "SYMBOL", // symbol
stringFormat->DirectionVertical(), // vertical
font->Italic(), // italic
false, // monospaced
@@ -1617,7 +1617,7 @@ namespace emfplushelper
font->family, // font family
emptyString, // (no) font style
font->Bold() ? 8u : 1u, // weight: 8 = bold
- font->family.compareTo("SYMBOL") == 0, // symbol
+ font->family == "SYMBOL", // symbol
optionFlags & 0x2, // vertical
font->Italic(), // italic
false, // monospaced