summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-30 22:39:44 +0200
committerEike Rathke <erack@redhat.com>2016-08-30 23:09:16 +0200
commitd3351ca3c73263fb0151970e7924dff5fa105504 (patch)
tree54fa9c8b01237ac8abf51b70d03fe6e2fb342a5e /linguistic
parent75003438e4b429ffb3f013afd0e36d70545833cc (diff)
LanguageType is unsigned int16
Change-Id: I5745fe2a54936e7a2585fe311522d71f08b97bfc
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hyphdsp.cxx14
-rw-r--r--linguistic/source/hyphdsp.hxx4
-rw-r--r--linguistic/source/hyphdta.cxx4
-rw-r--r--linguistic/source/misc.cxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 6018af00f99a..1a6db5efa4a6 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -70,7 +70,7 @@ void HyphenatorDispatcher::ClearSvcList()
Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord(
const OUString& rOrigWord,
const Reference<XDictionaryEntry> &xEntry,
- sal_Int16 nLang, sal_Int16 nMaxLeading )
+ LanguageType nLang, sal_Int16 nMaxLeading )
{
MutexGuard aGuard( GetLinguMutex() );
@@ -182,7 +182,7 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord(
Reference< XPossibleHyphens > HyphenatorDispatcher::buildPossHyphens(
- const Reference< XDictionaryEntry > &xEntry, sal_Int16 nLanguage )
+ const Reference< XDictionaryEntry > &xEntry, LanguageType nLanguage )
{
MutexGuard aGuard( GetLinguMutex() );
@@ -281,7 +281,7 @@ Reference< XHyphenatedWord > SAL_CALL
Reference< XHyphenatedWord > xRes;
sal_Int32 nWordLen = rWord.getLength();
- sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
+ LanguageType nLanguage = LinguLocaleToLanguage( rLocale );
if (LinguIsUnspecified(nLanguage) || !nWordLen ||
nMaxLeading == 0 || nMaxLeading == nWordLen)
return xRes;
@@ -418,7 +418,7 @@ Reference< XHyphenatedWord > SAL_CALL
Reference< XHyphenatedWord > xRes;
sal_Int32 nWordLen = rWord.getLength();
- sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
+ LanguageType nLanguage = LinguLocaleToLanguage( rLocale );
if (LinguIsUnspecified(nLanguage) || !nWordLen)
return xRes;
@@ -549,7 +549,7 @@ Reference< XPossibleHyphens > SAL_CALL
Reference< XPossibleHyphens > xRes;
- sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
+ LanguageType nLanguage = LinguLocaleToLanguage( rLocale );
if (LinguIsUnspecified(nLanguage) || rWord.isEmpty())
return xRes;
@@ -663,7 +663,7 @@ void HyphenatorDispatcher::SetServiceList( const Locale &rLocale,
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
+ LanguageType nLanguage = LinguLocaleToLanguage( rLocale );
sal_Int32 nLen = rSvcImplNames.getLength();
if (0 == nLen)
@@ -698,7 +698,7 @@ Sequence< OUString >
Sequence< OUString > aRes;
// search for entry with that language and use data from that
- sal_Int16 nLanguage = LinguLocaleToLanguage( rLocale );
+ LanguageType nLanguage = LinguLocaleToLanguage( rLocale );
const HyphSvcByLangMap_t::const_iterator aIt( aSvcMap.find( nLanguage ) );
const LangSvcEntries_Hyph *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : nullptr;
if (pEntry)
diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx
index 39b7030ca701..7872c7e366ff 100644
--- a/linguistic/source/hyphdsp.hxx
+++ b/linguistic/source/hyphdsp.hxx
@@ -71,11 +71,11 @@ class HyphenatorDispatcher :
static css::uno::Reference< css::linguistic2::XHyphenatedWord>
buildHyphWord( const OUString& rOrigWord,
const css::uno::Reference< css::linguistic2::XDictionaryEntry> &xEntry,
- sal_Int16 nLang, sal_Int16 nMaxLeading );
+ LanguageType nLang, sal_Int16 nMaxLeading );
static css::uno::Reference< css::linguistic2::XPossibleHyphens >
buildPossHyphens( const css::uno::Reference< css::linguistic2::XDictionaryEntry > &xEntry,
- sal_Int16 nLanguage );
+ LanguageType nLanguage );
public:
explicit HyphenatorDispatcher( LngSvcMgr &rLngSvcMgr );
diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx
index 0eb88f1837de..69e6a5f0c101 100644
--- a/linguistic/source/hyphdta.cxx
+++ b/linguistic/source/hyphdta.cxx
@@ -40,7 +40,7 @@ namespace linguistic
{
-HyphenatedWord::HyphenatedWord(const OUString &rWord, sal_Int16 nLang, sal_Int16 nHPos,
+HyphenatedWord::HyphenatedWord(const OUString &rWord, sal_uInt16 nLang, sal_Int16 nHPos,
const OUString &rHyphWord, sal_Int16 nPos ) :
aWord (rWord),
aHyphenatedWord (rHyphWord),
@@ -119,7 +119,7 @@ sal_Bool SAL_CALL HyphenatedWord::isAlternativeSpelling()
}
-PossibleHyphens::PossibleHyphens(const OUString &rWord, sal_Int16 nLang,
+PossibleHyphens::PossibleHyphens(const OUString &rWord, sal_uInt16 nLang,
const OUString &rHyphWord,
const Sequence< sal_Int16 > &rPositions) :
aWord (rWord),
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 353d2decc5af..29a057fbfb2b 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -68,7 +68,7 @@ osl::Mutex & GetLinguMutex()
return LinguMutex::get();
}
-LocaleDataWrapper & GetLocaleDataWrapper( sal_Int16 nLang )
+LocaleDataWrapper & GetLocaleDataWrapper( LanguageType nLang )
{
static LocaleDataWrapper aLclDtaWrp( SvtSysLocale().GetLanguageTag() );