diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-06-01 10:57:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-02 07:31:39 +0000 |
commit | 4ca9e855389176bd913c60840b516cb122273b81 (patch) | |
tree | cdc8ea83381a348d4ca646eb87343ee07b5c56aa /chart2/source/controller/main/ChartTransferable.cxx | |
parent | 85a013ac3fcb8da33babd1f8d11dfa9016cc1547 (diff) |
replace simple macros in chart2
with static constantants or a named value (enum)
Change-Id: I8ef21bc3b9797ed9319e790fc12241d59f07b88c
Reviewed-on: https://gerrit.libreoffice.org/25760
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/controller/main/ChartTransferable.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartTransferable.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ChartTransferable.cxx b/chart2/source/controller/main/ChartTransferable.cxx index 5888620fa271..206b7adf7328 100644 --- a/chart2/source/controller/main/ChartTransferable.cxx +++ b/chart2/source/controller/main/ChartTransferable.cxx @@ -32,8 +32,6 @@ #include <svx/unomodel.hxx> #include <svx/svdview.hxx> -#define CHARTTRANSFER_OBJECTTYPE_DRAWMODEL SotClipboardFormatId::STRING - using namespace ::com::sun::star; using ::com::sun::star::uno::Reference; @@ -83,7 +81,7 @@ bool ChartTransferable::GetData( const css::datatransfer::DataFlavor& rFlavor, c { if ( nFormat == SotClipboardFormatId::DRAWING ) { - bResult = SetObject( m_pMarkedObjModel, CHARTTRANSFER_OBJECTTYPE_DRAWMODEL, rFlavor ); + bResult = SetObject( m_pMarkedObjModel, SotClipboardFormatId::STRING, rFlavor ); } else if ( nFormat == SotClipboardFormatId::GDIMETAFILE ) { @@ -108,7 +106,7 @@ bool ChartTransferable::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, voi bool bRet = false; switch ( nUserObjectId ) { - case CHARTTRANSFER_OBJECTTYPE_DRAWMODEL: + case SotClipboardFormatId::STRING: { SdrModel* pMarkedObjModel = static_cast< SdrModel* >( pUserObject ); if ( pMarkedObjModel ) |