summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-01 19:07:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-01 19:51:19 +0100
commitf050faebabec8a0c2d63fe63a1195bb845ea4443 (patch)
tree1e9cbbd03eca3b8291445b2a59870490b5c788e9 /filter
parent7c7204ceefd7f2828225d40e8d88f69c84927c43 (diff)
cgm mode is now unused
Change-Id: Iea58345633cdea50fdecfe9376160ae4ffcfc6a9
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx7
-rw-r--r--filter/source/graphicfilter/icgm/cgm.hxx3
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; };