summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-26 12:54:19 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-26 17:51:28 +0100
commiteb63ac518167601896afe0c336e2562efa0f43f2 (patch)
treef012ab389780da395edbe8c10b7023f3d870d03c /include
parent39963be8679ceef5d08eda9e04e97b6fbb079b71 (diff)
vcl: actually that shared_array was a scam
The only things passed as buffers there were null pointers and shared_arrays that had the deletion explicitly disabled with a struct NoDelete, so it's sufficient to just pass a pointer. Change-Id: I68d618782aa654242048516d2e910b8136b16e2d
Diffstat (limited to 'include')
-rw-r--r--include/vcl/virdev.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx
index e56a9a1a74f1..b9b5bba0e474 100644
--- a/include/vcl/virdev.hxx
+++ b/include/vcl/virdev.hxx
@@ -24,7 +24,6 @@
#include <vcl/salgtype.hxx>
#include <vcl/outdev.hxx>
-#include <memory>
class SalVirtualDevice;
struct SystemGraphicsData;
@@ -47,9 +46,9 @@ private:
SAL_DLLPRIVATE void ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, DeviceFormat eFormat, const SystemGraphicsData *pData = nullptr );
SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
- const std::shared_ptr<sal_uInt8> &pBuffer );
+ sal_uInt8* pBuffer );
SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
- const std::shared_ptr<sal_uInt8> &pBuffer );
+ sal_uInt8* pBuffer );
VirtualDevice (const VirtualDevice &) = delete;
VirtualDevice & operator= (const VirtualDevice &) = delete;
@@ -127,7 +126,7 @@ public:
bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize,
const Fraction& rScale,
const Point& rNewOffset,
- const std::shared_ptr<sal_uInt8> &pBuffer );
+ sal_uInt8* pBuffer);
bool SetOutputSize( const Size& rNewSize, bool bErase = true )
{ return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); }