summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-01 19:01:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-01 19:51:18 +0100
commit537fff14c233ad85a22588557ff0e9a3caeea155 (patch)
treec3e425a2aca86b9fd35f03181fbf013b279b2804 /sd
parentadjust cgm import to make testing easier (diff)
downloadcore-537fff14c233ad85a22588557ff0e9a3caeea155.tar.gz
core-537fff14c233ad85a22588557ff0e9a3caeea155.zip
CGM_IMPORT_CGM is always used
Change-Id: I77616b97970486aa6bb3c9af577d4bb412c35ca2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/cgm/sdcgmfilter.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx
index 6837343e6e79..1dc775256435 100644
--- a/sd/source/filter/cgm/sdcgmfilter.cxx
+++ b/sd/source/filter/cgm/sdcgmfilter.cxx
@@ -33,7 +33,6 @@
#include "../../ui/inc/DrawDocShell.hxx"
-#define CGM_IMPORT_CGM 0x00000001
#define CGM_EXPORT_IMPRESS 0x00000100
#define CGM_BIG_ENDIAN 0x00020000
@@ -97,7 +96,7 @@ bool SdCGMFilter::Import()
CreateStatusIndicator();
std::unique_ptr<SvStream> xIn(::utl::UcbStreamHelper::CreateStream(aFileURL, StreamMode::READ));
- nRetValue = xIn ? FncImportCGM(*xIn, mxModel, CGM_IMPORT_CGM | CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, mxStatusIndicator) : 0;
+ nRetValue = xIn ? FncImportCGM(*xIn, mxModel, CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, mxStatusIndicator) : 0;
if( nRetValue )
{
@@ -135,7 +134,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportCGM(SvStream &rStream)
CGMPointer aPointer;
- bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), CGM_IMPORT_CGM | CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, css::uno::Reference<css::task::XStatusIndicator>()) == 0;
+ bool bRet = aPointer.get()(rStream, xDocShRef->GetModel(), CGM_BIG_ENDIAN | CGM_EXPORT_IMPRESS, css::uno::Reference<css::task::XStatusIndicator>()) == 0;
xDocShRef->DoClose();