summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-08 11:05:34 +0200
committerNoel Grandin <noel@peralex.com>2015-04-08 11:40:15 +0200
commit704edbf7dc844e52404bf52f9d5dc768cfd024d0 (patch)
treea5697b9e255707f911a966d67dd1bbd7586b9176 /sw
parent6bf94344723146d64092b7beba93fe78e7119029 (diff)
convert DIC_ERR_ constants to scoped enum
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index 9b9b17baf741..e4edd46a7112 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -749,9 +749,9 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
}
} else {
OUString sWord(m_xSpellAlt->getWord());
- sal_Int16 nAddRes = linguistic::AddEntryToDic( xDictionary,
+ linguistic::DictionaryError nAddRes = linguistic::AddEntryToDic( xDictionary,
sWord, false, OUString(), LANGUAGE_NONE );
- if (DIC_ERR_NONE != nAddRes && !xDictionary->getEntry(sWord).is())
+ if (linguistic::DictionaryError::NONE != nAddRes && !xDictionary->getEntry(sWord).is())
{
SvxDicError(&m_pSh->GetView().GetViewFrame()->GetWindow(), nAddRes);
}
@@ -777,13 +777,13 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
if (xDic.is())
{
- sal_Int16 nAddRes = linguistic::AddEntryToDic(xDic, sWord, false, OUString(), LANGUAGE_NONE);
+ linguistic::DictionaryError nAddRes = linguistic::AddEntryToDic(xDic, sWord, false, OUString(), LANGUAGE_NONE);
// save modified user-dictionary if it is persistent
uno::Reference< frame::XStorable > xSavDic( xDic, uno::UNO_QUERY );
if (xSavDic.is())
xSavDic->store();
- if (DIC_ERR_NONE != nAddRes && !xDic->getEntry(sWord).is())
+ if (linguistic::DictionaryError::NONE != nAddRes && !xDic->getEntry(sWord).is())
{
SvxDicError(&m_pSh->GetView().GetViewFrame()->GetWindow(), nAddRes);
}