summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-03-24 23:04:42 +0100
committerMichael Stahl <mstahl@redhat.com>2016-03-29 10:08:34 +0000
commit4b039f27a2fe85a76ac8ccbf882fe9aff6870b4c (patch)
tree2005d2597cae73f49e88fccf3b4b2009d94248b4 /vcl/osx
parent017a864caf4c57f1dcff28fce824f2a41ea6e027 (diff)
vcl: replace boost::shared_array with std::shared_ptr
The boost::bind here looks totally pointless too. No idea why this uses rtl_allocateMemory, let's keep that. Change-Id: If51ba9837a318f11094ee39225233212a848a955 Reviewed-on: https://gerrit.libreoffice.org/23502 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salprn.cxx12
1 files changed, 6 insertions, 6 deletions
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 <boost/bind.hpp>
-
#include "officecfg/Office/Common.hxx"
#include <vcl/print.hxx>
@@ -78,12 +76,14 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
mpGraphics = new AquaSalGraphics();
const int nWidth = 100, nHeight = 100;
- maContextMemory.reset( static_cast<sal_uInt8*>( rtl_allocateMemory( nWidth * 4 * nHeight ) ),
- boost::bind( rtl_freeMemory, _1 ) );
+ mpContextMemory.reset(static_cast<sal_uInt8*>(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 );
}