diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-21 15:17:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-21 15:17:04 +0100 |
commit | 718c82d1de44d2d7c16e4299b61171b72186f50b (patch) | |
tree | 708bd0496138e766ab0c80b7c66b2220d25cfccf /vcl/quartz | |
parent | ebe247642d85d39b6e1ffae3cf92c31748f2e983 (diff) |
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
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
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; } |