diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-12 10:05:38 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-12 23:12:14 +0000 |
commit | f92a5927052f1e96ed864dd6bc6326531db4fd1f (patch) | |
tree | 613853e86c57e2f932b3f15a432318d98d938d30 /vcl/generic/glyphs | |
parent | 133fbbcbd3fa8fec3920b53f6b93f5d3c4779a35 (diff) |
Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4
Reviewed-on: https://gerrit.libreoffice.org/2676
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'vcl/generic/glyphs')
-rw-r--r-- | vcl/generic/glyphs/glyphcache.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx index 1d1322c7a702..bc9fb09410a2 100644 --- a/vcl/generic/glyphs/glyphcache.cxx +++ b/vcl/generic/glyphs/glyphcache.cxx @@ -87,7 +87,7 @@ size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData sal_IntPtr nFontId = reinterpret_cast<sal_IntPtr>( rFontSelData.mpFontData ); #ifdef ENABLE_GRAPHITE if (rFontSelData.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX) - != STRING_NOTFOUND) + != -1) { rtl::OString aFeatName = rtl::OUStringToOString( rFontSelData.maTargetName, RTL_TEXTENCODING_UTF8 ); nFontId ^= aFeatName.hashCode(); @@ -139,9 +139,9 @@ bool GlyphCache::IFSD_Equal::operator()( const FontSelectPattern& rA, const Font return false; // 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 |