From 52f8321c412cad280c9029f10f9aef03f4f20544 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Tue, 19 Mar 2013 16:44:12 +0100 Subject: use #if instead of #ifdef for testing config_xxx.hxx macros http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3 --- vcl/generic/glyphs/glyphcache.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/generic/glyphs/glyphcache.cxx') diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx index bc9fb09410a2..3ceb72442516 100644 --- a/vcl/generic/glyphs/glyphcache.cxx +++ b/vcl/generic/glyphs/glyphcache.cxx @@ -28,7 +28,7 @@ #include #include -#ifdef ENABLE_GRAPHITE +#if ENABLE_GRAPHITE #include #endif @@ -85,7 +85,7 @@ size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData { // TODO: is it worth to improve this hash function? sal_IntPtr nFontId = reinterpret_cast( rFontSelData.mpFontData ); -#ifdef ENABLE_GRAPHITE +#if ENABLE_GRAPHITE if (rFontSelData.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX) != -1) { @@ -99,7 +99,7 @@ size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData nHash += rFontSelData.mbVertical; nHash += rFontSelData.GetSlant(); nHash += rFontSelData.GetWeight(); -#ifdef ENABLE_GRAPHITE +#if ENABLE_GRAPHITE nHash += rFontSelData.meLanguage; #endif return nHash; @@ -134,7 +134,7 @@ bool GlyphCache::IFSD_Equal::operator()( const FontSelectPattern& rA, const Font if( nAWidth != nBWidth ) return false; -#ifdef ENABLE_GRAPHITE +#if ENABLE_GRAPHITE if (rA.meLanguage != rB.meLanguage) return false; // check for features -- cgit