diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/icgm/cgm.cxx | 7 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/cgm.hxx | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx index 970416a45941..8caba71e88a0 100644 --- a/filter/source/graphicfilter/icgm/cgm.cxx +++ b/filter/source/graphicfilter/icgm/cgm.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star; -CGM::CGM( sal_uInt32 nMode, uno::Reference< frame::XModel > const & rModel ) +CGM::CGM(uno::Reference< frame::XModel > const & rModel) : mnOutdx(28000) , mnOutdy(21000) , mnVDCXadd(0) @@ -60,7 +60,6 @@ CGM::CGM( sal_uInt32 nMode, uno::Reference< frame::XModel > const & rModel ) , mnParaSize(0) , mnActCount(0) , mpBuf(nullptr) - , mnMode(nMode) , mnEscape(0) , mnElementClass(0) , mnElementID(0) @@ -706,7 +705,7 @@ bool CGM::Write( SvStream& rIStm ) // GraphicImport - the exported function extern "C" SAL_DLLPUBLIC_EXPORT sal_uInt32 SAL_CALL -ImportCGM(SvStream& rIn, uno::Reference< frame::XModel > const & rXModel, sal_uInt32 nMode, css::uno::Reference<css::task::XStatusIndicator> const & aXStatInd) +ImportCGM(SvStream& rIn, uno::Reference< frame::XModel > const & rXModel, css::uno::Reference<css::task::XStatusIndicator> const & aXStatInd) { sal_uInt32 nStatus = 0; // retvalue == 0 -> ERROR @@ -716,7 +715,7 @@ ImportCGM(SvStream& rIn, uno::Reference< frame::XModel > const & rXModel, sal_uI { try { - std::unique_ptr<CGM> pCGM(new CGM( nMode, rXModel )); + std::unique_ptr<CGM> pCGM(new CGM(rXModel)); if (pCGM && pCGM->IsValid()) { rIn.SetEndian(SvStreamEndian::BIG); diff --git a/filter/source/graphicfilter/icgm/cgm.hxx b/filter/source/graphicfilter/icgm/cgm.hxx index 9de86ba8881b..4da49ea302de 100644 --- a/filter/source/graphicfilter/icgm/cgm.hxx +++ b/filter/source/graphicfilter/icgm/cgm.hxx @@ -83,7 +83,6 @@ class CGM sal_uInt8* mpBuf; // source stream operation -> then this is allocated for // the temp input buffer - sal_uInt32 mnMode; // source description sal_uInt32 mnEscape; sal_uInt32 mnElementClass; sal_uInt32 mnElementID; @@ -134,7 +133,7 @@ class CGM ~CGM(); - CGM( sal_uInt32 nMode, css::uno::Reference< css::frame::XModel > const & rModel ); + CGM(css::uno::Reference< css::frame::XModel > const & rModel); GDIMetaFile* mpGDIMetaFile; sal_uInt32 GetBackGroundColor(); bool IsValid() const { return mbStatus; }; |