diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-21 13:52:14 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-21 22:25:03 +0000 |
commit | 373e71ee65a90daa9a27ff5bb7a3d6c867e4f393 (patch) | |
tree | ceba77dcc99d5fce0f9ba2a2e56c8c69af8d3987 /filter | |
parent | d0489d0827fc6cef04d0f3602023d82ceda82480 (diff) |
tdf#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I97726ed32e5aa92e7da7d248380a78b1b201e46e
Reviewed-on: https://gerrit.libreoffice.org/17912
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/epict/epict.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index 6807e84f6a48..b4afb21861b8 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -1393,7 +1393,6 @@ void PictWriter::HandleLineInfoPolyPolygons(const LineInfo& rInfo, const basegfx void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF ) { size_t nA, nACount; - const MetaAction* pMA; if( !bStatus) return; @@ -1402,7 +1401,7 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF ) for (nA=0; nA < nACount; nA++) { - pMA = rMTF.GetAction(nA); + const MetaAction* pMA = rMTF.GetAction(nA); switch (pMA->GetType()) { |