diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-15 10:24:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-15 12:37:35 +0100 |
commit | 953a5cb1c8c750df24ed0316349a5916c384296d (patch) | |
tree | 26a76707725fad73d9e71486f0723406bae52065 /vcl/qa/cppunit/jpeg | |
parent | bca14a7126a8cea12eecd248ae84e3d07db9609b (diff) |
move Bitmap::ScopedWriteAccess inside vcl
would have liked to make the AcquireWriteAccess methods DLLPRIVATE, but
they are needed by the workbench and testing code
Change-Id: I22497788eb68dfb84b7e542e5ef53322892a5274
Reviewed-on: https://gerrit.libreoffice.org/51310
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/qa/cppunit/jpeg')
-rw-r--r-- | vcl/qa/cppunit/jpeg/JpegReaderTest.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx index 64125245c82a..4cae79645bd6 100644 --- a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx +++ b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx @@ -12,6 +12,7 @@ #include <unotest/bootstrapfixturebase.hxx> #include <vcl/graphicfilter.hxx> #include <vcl/bitmapaccess.hxx> +#include <bitmapwriteaccess.hxx> class JpegReaderTest : public test::BootstrapFixtureBase { @@ -51,7 +52,7 @@ int deltaColor(BitmapColor aColor1, BitmapColor aColor2) bool checkRect(Bitmap& rBitmap, int aLayerNumber, long nAreaHeight, long nAreaWidth, Color aExpectedColor, int nMaxDelta) { - Bitmap::ScopedWriteAccess pAccess(rBitmap); + BitmapScopedWriteAccess pAccess(rBitmap); long nWidth = std::min(nAreaWidth, pAccess->Width()); long nHeight = std::min(nAreaHeight, pAccess->Height()); |