diff --git a/vcl/inc/osx/salprn.h b/vcl/inc/osx/salprn.h index 363c137be121..bfedb08aa965 100644 --- a/vcl/inc/osx/salprn.h +++ b/vcl/inc/osx/salprn.h @@ -24,8 +24,7 @@ #include "salprn.hxx" -#include - +#include class AquaSalGraphics; @@ -48,7 +47,7 @@ class AquaSalInfoPrinter : public SalInfoPrinter /// graphics context for Quartz 2D CGContextRef mrContext; /// memory for graphics bitmap context for querying metrics - boost::shared_array< sal_uInt8 > maContextMemory; + std::shared_ptr mpContextMemory; // since changes to NSPrintInfo during a job are ignored // we have to care for some settings ourselves diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 3ec863109cae..af51e0544120 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include - #include "officecfg/Office/Common.hxx" #include @@ -78,12 +76,14 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) : mpGraphics = new AquaSalGraphics(); const int nWidth = 100, nHeight = 100; - maContextMemory.reset( static_cast( rtl_allocateMemory( nWidth * 4 * nHeight ) ), - boost::bind( rtl_freeMemory, _1 ) ); + mpContextMemory.reset(static_cast(rtl_allocateMemory(nWidth * 4 * nHeight)), + &rtl_freeMemory); - if( maContextMemory ) + if (mpContextMemory) { - mrContext = CGBitmapContextCreate( maContextMemory.get(), nWidth, nHeight, 8, nWidth * 4, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst ); + mrContext = CGBitmapContextCreate(mpContextMemory.get(), + nWidth, nHeight, 8, nWidth * 4, + GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst); if( mrContext ) SetupPrinterGraphics( mrContext ); }