summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-26 21:01:52 +0100
committerEike Rathke <erack@redhat.com>2013-03-26 21:02:55 +0100
commit909de9de9fce6a2e8a5c4e859038d00ce3e88c15 (patch)
tree061aebe25c6a1fa5dec2ff5c96ca662aa6216c36 /vcl/source/gdi
parentef2c6f988203ec3f7a79077d4734c51401f0d8de (diff)
7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 changed some String to OUString and replaced Search...() with indexOf() but still compared the result against STRING_NOTFOUND instead of the -1 required now. Change-Id: I94ecdd1741554d8ac401f9cc2ffe8456e3184394
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/outdev3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 56d1d4a8ef9a..4ce3714d1850 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -2178,9 +2178,9 @@ bool ImplFontCache::IFSD_Equal::operator()(const FontSelectPattern& rA, const Fo
#if ENABLE_GRAPHITE
// check for features
if ((rA.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
- != STRING_NOTFOUND ||
+ != -1 ||
rB.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
- != STRING_NOTFOUND) && rA.maTargetName != rB.maTargetName)
+ != -1) && rA.maTargetName != rB.maTargetName)
return false;
#endif