diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 11:05:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-08 11:40:15 +0200 |
commit | 704edbf7dc844e52404bf52f9d5dc768cfd024d0 (patch) | |
tree | a5697b9e255707f911a966d67dd1bbd7586b9176 /editeng | |
parent | 6bf94344723146d64092b7beba93fe78e7119029 (diff) |
convert DIC_ERR_ constants to scoped enum
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index de31456c8586..d3a10720fada 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -822,16 +822,16 @@ SvxDicListChgClamp::~SvxDicListChgClamp() } } -short SvxDicError( vcl::Window *pParent, sal_Int16 nError ) +short SvxDicError( vcl::Window *pParent, linguistic::DictionaryError nError ) { short nRes = 0; - if (DIC_ERR_NONE != nError) + if (linguistic::DictionaryError::NONE != nError) { int nRid; switch (nError) { - case DIC_ERR_FULL : nRid = RID_SVXSTR_DIC_ERR_FULL; break; - case DIC_ERR_READONLY : nRid = RID_SVXSTR_DIC_ERR_READONLY; break; + case linguistic::DictionaryError::FULL : nRid = RID_SVXSTR_DIC_ERR_FULL; break; + case linguistic::DictionaryError::READONLY : nRid = RID_SVXSTR_DIC_ERR_READONLY; break; default: nRid = RID_SVXSTR_DIC_ERR_UNKNOWN; SAL_WARN("editeng", "unexpected case"); |