summaryrefslogtreecommitdiff
path: root/sd/qa/unit/import-tests.cxx
diff options
context:
space:
mode:
authorMark Page <aptitude@btconnect.com>2016-12-05 14:03:12 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-06 18:17:56 +0000
commitd08db164dcac8f6aa88158b2848abb5ad66a4052 (patch)
treebacb0e7b183115e3b00bd4c375b37908264f0f87 /sd/qa/unit/import-tests.cxx
parent0c6c37cb01c242ad9324bc91ac15c974529086c5 (diff)
Change Read/Write access to Scoped Read/Write access
Change-Id: Idbe8e393b64f2a151e20c1851d7c14fa161acf97 Reviewed-on: https://gerrit.libreoffice.org/31635 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/qa/unit/import-tests.cxx')
-rw-r--r--sd/qa/unit/import-tests.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index fd58d72b5588..110baa9433b1 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -1384,7 +1384,7 @@ void SdImportTest::testTdf99729()
vcl::PNGReader aPNGReader(aFileStream);
BitmapEx aBMPEx = aPNGReader.Read();
Bitmap aBMP = aBMPEx.GetBitmap();
- BitmapReadAccess* pRead = aBMP.AcquireReadAccess();
+ Bitmap::ScopedReadAccess pRead(aBMP);
for (long nX = 154; nX < (154 + 12); ++nX)
{
for (long nY = 16; nY < (16 + 96); ++nY)