diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-08-30 08:31:27 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-08-30 08:33:56 +0300 |
commit | d23a1f4dabda939a216293c150c3679b0979d0bd (patch) | |
tree | 12410b92780d6c5af42ba7fec5b43b48ef75f08b /vcl/win | |
parent | 6900bf41e2b7d7840e11ee1847efd671cf9b0921 (diff) |
Don't check SAL_DETAIL_ENABLE_LOG_INFO, check SAL_LOG_INFO
SAL_DETAIL_ENABLE_LOG_INFO is always defined, as "true" or "false". It
is SAL_LOG_INFO that is defined or not, and can be used to avoid
unnecessary non-trivial code that the compiler might not be able to
optimise away.
Change-Id: I9903faab64b39fee86bff3b085cdce3614b0d921
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 056c48a86cf5..a7f44e29d6a7 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -105,7 +105,7 @@ public: const OpenGLGlyphCacheChunk& GetCachedGlyphChunkFor(int nGlyphIndex) const; }; -#ifdef SAL_DETAIL_ENABLE_LOG_INFO +#ifdef SAL_LOG_INFO namespace { @@ -150,7 +150,7 @@ void DumpGlyphBitmap(HDC hDC) } // anonymous namespace -#endif // SAL_DETAIL_ENABLE_LOG_INFO +#endif // SAL_LOG_INFO template< typename charT, typename traits > inline std::basic_ostream<charT, traits> & operator <<( @@ -428,7 +428,7 @@ bool ImplWinFontEntry::AddChunkOfGlyphs(int nGlyphIndex, const WinLayout& rLayou if (hNonAntialiasedFont != NULL) DeleteObject(hNonAntialiasedFont); -#ifdef SAL_DETAIL_ENABLE_LOG_INFO +#ifdef SAL_LOG_INFO SAL_INFO("vcl.gdi.opengl", "this=" << this << " now: " << maOpenGLGlyphCache); DumpGlyphBitmap(aDC.getCompatibleHDC()); #endif |