diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-27 10:03:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-28 08:35:34 +0200 |
commit | d29e1960f4a8d6767e80f72b7c9757f4d216f35c (patch) | |
tree | 6531176a1ae5d00f80a3209abdc0591a52f5a5aa /include | |
parent | 19ae187b328bad9197d5241bd585f9101116ab12 (diff) |
convert EE_ACTION constants to scoped enum
Change-Id: Iaa51c235a2118e0d808400eba622fbe021571b38
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editdata.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/editeng/editdata.hxx b/include/editeng/editdata.hxx index 1847780973c7..8d208d304872 100644 --- a/include/editeng/editdata.hxx +++ b/include/editeng/editdata.hxx @@ -281,16 +281,15 @@ struct MoveParagraphsInfo { nStartPara = nS; nEndPara = nE; nDestPara = nD; } }; -#define EE_ACTION_PASTE 1 -#define EE_ACTION_DROP 2 +enum class PasteOrDropInfosAction { PASTE=1, DROP=2 }; struct PasteOrDropInfos { - sal_uInt16 nAction; - sal_Int32 nStartPara; - sal_Int32 nEndPara; + PasteOrDropInfosAction nAction; + sal_Int32 nStartPara; + sal_Int32 nEndPara; - PasteOrDropInfos() : nAction(0), nStartPara(-1), nEndPara(-1) {} + PasteOrDropInfos(PasteOrDropInfosAction _nAction) : nAction(_nAction), nStartPara(-1), nEndPara(-1) {} }; enum EENotifyType |