summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdetc.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 /svx/source/svdraw/svdetc.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 'svx/source/svdraw/svdetc.cxx')
-rw-r--r--svx/source/svdraw/svdetc.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx
index f10b09f81ed5..83479041ed07 100644
--- a/svx/source/svdraw/svdetc.cxx
+++ b/svx/source/svdraw/svdetc.cxx
@@ -302,7 +302,7 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol)
const Size aSize(aBitmap.GetSizePixel());
const sal_uInt32 nWidth = aSize.Width();
const sal_uInt32 nHeight = aSize.Height();
- BitmapReadAccess* pAccess = aBitmap.AcquireReadAccess();
+ Bitmap::ScopedReadAccess pAccess(aBitmap);
if(pAccess && nWidth > 0 && nHeight > 0)
{
@@ -335,12 +335,6 @@ bool GetDraftFillColor(const SfxItemSet& rSet, Color& rCol)
bRetval = true;
}
-
- if(pAccess)
- {
- Bitmap::ReleaseAccess(pAccess);
- }
-
break;
}
default: break;