summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-14 10:26:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-14 10:26:12 +0000
commit2fbc3a4e82433532a7f3c2a978f5f8cae6981979 (patch)
tree75296bc19e6bdf08460cd966eab35139081d10ca /filter
parent16f5f716de4f8a6ecf2378f50f9320194bad5320 (diff)
reduce scope of maBmp
Change-Id: I8605ec535bc8a948cf0dc0dd194e673b73939035
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/iras/iras.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/filter/source/graphicfilter/iras/iras.cxx b/filter/source/graphicfilter/iras/iras.cxx
index 9172ef909c00..0836ac5105db 100644
--- a/filter/source/graphicfilter/iras/iras.cxx
+++ b/filter/source/graphicfilter/iras/iras.cxx
@@ -43,7 +43,6 @@ private:
SvStream& m_rRAS; // Die einzulesende RAS-Datei
bool mbStatus;
- Bitmap maBmp;
sal_Int32 mnWidth, mnHeight; // Bildausmass in Pixeln
sal_uInt16 mnDstBitsPerPix;
sal_uInt16 mnDstColors;
@@ -97,8 +96,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
if ( !mbStatus )
return false;
- maBmp = Bitmap( Size( mnWidth, mnHeight ), mnDstBitsPerPix );
- Bitmap::ScopedWriteAccess pAcc(maBmp);
+ Bitmap aBmp(Size(mnWidth, mnHeight), mnDstBitsPerPix);
+ Bitmap::ScopedWriteAccess pAcc(aBmp);
if ( pAcc == nullptr )
return false;
@@ -163,7 +162,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
mbStatus = ImplReadBody(pAcc.get());
if ( mbStatus )
- rGraphic = maBmp;
+ rGraphic = aBmp;
return mbStatus;
}