summaryrefslogtreecommitdiff
path: root/linguistic/source/misc.cxx
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 /linguistic/source/misc.cxx
parent6bf94344723146d64092b7beba93fe78e7119029 (diff)
convert DIC_ERR_ constants to scoped enum
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r--linguistic/source/misc.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index db7d0300121f..0903a35fda51 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -350,14 +350,14 @@ bool SaveDictionaries( const uno::Reference< XSearchableDictionaryList > &xDicLi
return bRet;
}
-sal_uInt8 AddEntryToDic(
+DictionaryError AddEntryToDic(
uno::Reference< XDictionary > &rxDic,
const OUString &rWord, bool bIsNeg,
const OUString &rRplcTxt, sal_Int16 /* nRplcLang */,
bool bStripDot )
{
if (!rxDic.is())
- return DIC_ERR_NOT_EXISTS;
+ return DictionaryError::NOT_EXISTS;
OUString aTmp( rWord );
if (bStripDot)
@@ -372,18 +372,18 @@ sal_uInt8 AddEntryToDic(
}
bool bAddOk = rxDic->add( aTmp, bIsNeg, rRplcTxt );
- sal_uInt8 nRes = DIC_ERR_NONE;
+ DictionaryError nRes = DictionaryError::NONE;
if (!bAddOk)
{
if (rxDic->isFull())
- nRes = DIC_ERR_FULL;
+ nRes = DictionaryError::FULL;
else
{
uno::Reference< frame::XStorable > xStor( rxDic, UNO_QUERY );
if (xStor.is() && xStor->isReadonly())
- nRes = DIC_ERR_READONLY;
+ nRes = DictionaryError::READONLY;
else
- nRes = DIC_ERR_UNKNOWN;
+ nRes = DictionaryError::UNKNOWN;
}
}