vcl/quartz/salbmp.cxx | 13 ------------- 1 file changed, 13 deletions(-)
New commits: commit 718c82d1de44d2d7c16e4299b61171b72186f50b Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Mar 21 15:17:04 2018 +0100 Don't initialize data for --enable-dbgutil only This had originally been introduced with 0f6149593129c3d208f07d0d017dec0c71760778 "Make it easier to catch code that assumes SalBitmaps are created pre-cleared". But it only made it harder to find the issue reverted with ebe247642d85d39b6e1ffae3cf92c31748f2e983 "Revert 'tdf#116213 OS X and OpenGL bitmap scaline sizes are not 32-bit aligned'". Change-Id: I344e1ab4b390baa8364ade5fd2737a12708facdc diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index f9a10a44020b..aba40b44d8e0 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -272,10 +272,6 @@ bool QuartzSalBitmap::CreateContext() try { m_pContextBuffer = o3tl::make_shared_array<sal_uInt8>(mnHeight * nContextBytesPerRow); -#ifdef DBG_UTIL - for (size_t i = 0; i < mnHeight * nContextBytesPerRow; i++) - m_pContextBuffer.get()[i] = (i & 0xFF); -#endif if( !bSkipConversion ) { @@ -342,15 +338,6 @@ bool QuartzSalBitmap::AllocateUserData() m_pUserBuffer.reset( static_cast<sal_uInt8*>(nullptr) ); mnBytesPerRow = 0; } -#ifdef DBG_UTIL - else - { - for (size_t i = 0; i < mnBytesPerRow * mnHeight; i++) - { - m_pUserBuffer.get()[i] = (i & 0xFF); - } - } -#endif return m_pUserBuffer.get() != nullptr; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits