summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 16:22:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-17 08:40:39 +0200
commit82afd77a00c036f106a3aa5fb3402c92e10e2aa4 (patch)
tree2a07561d945b920c18f9e9b7fb5bde3eaf648945 /filter
parent59f398e934541e05dc9b77c1191227f8c68ea037 (diff)
loplugin:unusedfields in editeng..filter
Change-Id: I42e41ec69667a5560c5f31c85eb05074666a7bab Reviewed-on: https://gerrit.libreoffice.org/54455 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/flash/swfwriter.cxx4
-rw-r--r--filter/source/flash/swfwriter.hxx1
-rw-r--r--filter/source/graphicfilter/idxf/dxfgrprd.cxx2
-rw-r--r--filter/source/graphicfilter/idxf/dxfgrprd.hxx2
-rw-r--r--filter/source/msfilter/svdfppt.cxx5
5 files changed, 3 insertions, 11 deletions
diff --git a/filter/source/flash/swfwriter.cxx b/filter/source/flash/swfwriter.cxx
index 366b156eb7f6..b2e22b9685c0 100644
--- a/filter/source/flash/swfwriter.cxx
+++ b/filter/source/flash/swfwriter.cxx
@@ -63,7 +63,7 @@ Writer::Writer( sal_Int32 nTWIPWidthOutput, sal_Int32 nTWIPHeightOutput, sal_Int
tools::Rectangle aRect( 0, 0, static_cast<long>( mnDocWidth * mnDocXScale ), static_cast<long>( mnDocHeight * mnDocYScale ) );
tools::Polygon aPoly( aRect );
FillStyle aFill = FillStyle( COL_WHITE );
- mnWhiteBackgroundShapeId = defineShape( aPoly, aFill );
+ sal_uInt16 nWhiteBackgroundShapeId = defineShape( aPoly, aFill );
::basegfx::B2DHomMatrix m; // #i73264#
mnPageButtonId = createID();
@@ -72,7 +72,7 @@ Writer::Writer( sal_Int32 nTWIPWidthOutput, sal_Int32 nTWIPHeightOutput, sal_Int
// button records
mpTag->addUI8( 0x08 ); // only hit state
- mpTag->addUI16( mnWhiteBackgroundShapeId ); // shape id of background rectangle
+ mpTag->addUI16( nWhiteBackgroundShapeId ); // shape id of background rectangle
mpTag->addUI16( 0 ); // depth for button DANGER!
mpTag->addMatrix( m ); // identity matrix
mpTag->addUI8( 0 ); // empty color transform
diff --git a/filter/source/flash/swfwriter.hxx b/filter/source/flash/swfwriter.hxx
index 61972b30b9d3..e5453c6b5882 100644
--- a/filter/source/flash/swfwriter.hxx
+++ b/filter/source/flash/swfwriter.hxx
@@ -372,7 +372,6 @@ private:
double mnDocXScale;
double mnDocYScale;
- sal_uInt16 mnWhiteBackgroundShapeId;
sal_uInt16 mnPageButtonId;
VclPtrInstance<VirtualDevice> mpVDev;
diff --git a/filter/source/graphicfilter/idxf/dxfgrprd.cxx b/filter/source/graphicfilter/idxf/dxfgrprd.cxx
index c7fbd2cfd65a..3ae2f7db8b5c 100644
--- a/filter/source/graphicfilter/idxf/dxfgrprd.cxx
+++ b/filter/source/graphicfilter/idxf/dxfgrprd.cxx
@@ -114,8 +114,6 @@ DXFGroupReader::DXFGroupReader(SvStream & rIStream)
, S()
, I(0)
{
- rIS.Seek(STREAM_SEEK_TO_END);
- nFileSize=rIS.Tell();
rIS.Seek(0);
}
diff --git a/filter/source/graphicfilter/idxf/dxfgrprd.hxx b/filter/source/graphicfilter/idxf/dxfgrprd.hxx
index 97a023420e74..4ed4450d0017 100644
--- a/filter/source/graphicfilter/idxf/dxfgrprd.hxx
+++ b/filter/source/graphicfilter/idxf/dxfgrprd.hxx
@@ -71,8 +71,6 @@ private:
sal_uInt16 nLastG;
sal_uLong nGCount;
- sal_uLong nFileSize;
-
OString S;
union {
double F;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index c9e26c9e64c6..3aaf6c44dcba 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -3236,8 +3236,7 @@ bool PPTExtParaProv::GetGraphic( sal_uInt32 nInstance, Graphic& rGraph ) const
}
PPTExtParaProv::PPTExtParaProv( SdrPowerPointImport& rMan, SvStream& rSt, const DffRecordHeader* pHd ) :
- bStyles ( false ),
- bGraphics ( false )
+ bStyles ( false )
{
sal_uInt32 nOldPos = rSt.Tell();
@@ -3304,8 +3303,6 @@ PPTExtParaProv::PPTExtParaProv( SdrPowerPointImport& rMan, SvStream& rSt, const
if (!aBuGraAtomHd.SeekToEndOfRecord(rSt))
break;
}
- if ( !aBuGraList.empty() )
- bGraphics = true;
}
break;