diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-26 12:54:19 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-26 17:51:28 +0100 |
commit | eb63ac518167601896afe0c336e2562efa0f43f2 (patch) | |
tree | f012ab389780da395edbe8c10b7023f3d870d03c /vcl/inc | |
parent | 39963be8679ceef5d08eda9e04e97b6fbb079b71 (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 'vcl/inc')
-rw-r--r-- | vcl/inc/headless/svpvd.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/salvd.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/headless/svpvd.hxx b/vcl/inc/headless/svpvd.hxx index 9807c78c65e0..9256768a0fed 100644 --- a/vcl/inc/headless/svpvd.hxx +++ b/vcl/inc/headless/svpvd.hxx @@ -47,7 +47,7 @@ public: virtual bool SetSize( long nNewDX, long nNewDY ) override; virtual bool SetSizeUsingBuffer( long nNewDX, long nNewDY, - const std::shared_ptr<sal_uInt8> &pBuffer + sal_uInt8 * pBuffer ) override; // SalGeometryProvider diff --git a/vcl/inc/salvd.hxx b/vcl/inc/salvd.hxx index d3874c110399..95b4068db023 100644 --- a/vcl/inc/salvd.hxx +++ b/vcl/inc/salvd.hxx @@ -48,7 +48,7 @@ public: // Set new size using a buffer at the given address virtual bool SetSizeUsingBuffer( long nNewDX, long nNewDY, - const std::shared_ptr<sal_uInt8> & /* pBuffer */ ) + sal_uInt8 * /* pBuffer */) { // Only the headless virtual device has an implementation that uses // pBuffer (and bTopDown). |