diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-12 13:03:20 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:15:19 +0000 |
commit | 412cfb531bd137c3d01f21e24b12827ddb9b8b7b (patch) | |
tree | 5606e05ae7880cfda1ee49973246ee18136ed837 /sc/source/ui/view | |
parent | 0f6725454823a5789f3e1c70dad024c46d3f6fc9 (diff) |
convert EXCHG_OUT_ACTION_FLAG to scoped enum
and split it off into its own field and parameter
Change-Id: Ib13dea5e9475a74cd66a0da4e5ec50a51fbda9d5
Reviewed-on: https://gerrit.libreoffice.org/24926
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/viewfun3.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index 47217c1d1c6d..3facbf1951a8 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -487,10 +487,10 @@ void ScViewFunc::PasteFromSystem() SotExchangeDest nDestination = SotExchangeDest::SCDOC_FREE_AREA; sal_uInt16 nSourceOptions = EXCHG_IN_ACTION_COPY; SotClipboardFormatId nFormat; // output param for GetExchangeAction - sal_uInt16 nEventAction; // output param for GetExchangeAction + sal_uInt8 nEventAction; // output param for GetExchangeAction uno::Reference<css::datatransfer::XTransferable> xTransferable( aDataHelper.GetXTransferable() ); - sal_uInt16 nAction = SotExchange::GetExchangeAction( + sal_uInt8 nAction = SotExchange::GetExchangeAction( aDataHelper.GetDataFlavorExVector(), nDestination, nSourceOptions, @@ -500,8 +500,6 @@ void ScViewFunc::PasteFromSystem() if ( nAction != EXCHG_INOUT_ACTION_NONE ) { - nAction = ( nAction & EXCHG_ACTION_MASK ); - switch( nAction ) { case EXCHG_OUT_ACTION_INSERT_SVXB: |