summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-22 12:56:25 +0200
committerNoel Grandin <noel@peralex.com>2014-04-23 11:11:50 +0200
commitca56379f27c53d4fa015d7adbb9494186f506de6 (patch)
tree13d294bc496d7ee13f1b0eea85b3333241fdcbc3 /lingucomponent
parent20c0e71b9d773c03c8c03755076e0d1ad109db6d (diff)
lingucomponent: sal_Bool->bool
Change-Id: I2bc4548574a3275f0839451e747687f924465137
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx10
-rw-r--r--lingucomponent/source/lingutil/lingutil.hxx2
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx8
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx4
4 files changed, 12 insertions, 12 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 40f7dd279168..2fb10c1d70a2 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -227,7 +227,7 @@ sal_Bool SAL_CALL Hyphenator::hasLocale(const Locale& rLocale)
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!aSuppLocales.getLength())
getLocales();
@@ -237,7 +237,7 @@ sal_Bool SAL_CALL Hyphenator::hasLocale(const Locale& rLocale)
{
if (rLocale == pLocale[i])
{
- bRes = sal_True;
+ bRes = true;
break;
}
}
@@ -387,7 +387,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
for (sal_Int32 i = 0; i < n; i++)
{
int leftrep = 0;
- sal_Bool hit = (n >= minLen);
+ bool hit = (n >= minLen);
if (!rep || !rep[i] || (i >= n))
{
hit = hit && (hyphens[i]&1) && (i < Leading);
@@ -729,7 +729,7 @@ sal_Bool SAL_CALL Hyphenator::addLinguServiceEventListener(
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!bDisposing && rxLstnr.is())
{
bRes = GetPropHelper().addLinguServiceEventListener( rxLstnr );
@@ -743,7 +743,7 @@ sal_Bool SAL_CALL Hyphenator::removeLinguServiceEventListener(
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!bDisposing && rxLstnr.is())
{
bRes = GetPropHelper().removeLinguServiceEventListener( rxLstnr );
diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx
index f0c7d705a4a0..9a4f0f6a830d 100644
--- a/lingucomponent/source/lingutil/lingutil.hxx
+++ b/lingucomponent/source/lingutil/lingutil.hxx
@@ -41,7 +41,7 @@ struct lt_rtl_OUString
}
};
-inline sal_Bool operator == ( const ::com::sun::star::lang::Locale &rL1, const ::com::sun::star::lang::Locale &rL2 )
+inline bool operator == ( const ::com::sun::star::lang::Locale &rL1, const ::com::sun::star::lang::Locale &rL2 )
{
return rL1.Language == rL2.Language &&
rL1.Country == rL2.Country &&
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 1531c7e4e04d..1622e1d87da1 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -233,7 +233,7 @@ sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!aSuppLocales.getLength())
getLocales();
@@ -243,7 +243,7 @@ sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
{
if (rLocale == pLocale[i])
{
- bRes = sal_True;
+ bRes = true;
break;
}
}
@@ -515,7 +515,7 @@ sal_Bool SAL_CALL SpellChecker::addLinguServiceEventListener(
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!bDisposing && rxLstnr.is())
{
bRes = GetPropHelper().addLinguServiceEventListener( rxLstnr );
@@ -529,7 +529,7 @@ sal_Bool SAL_CALL SpellChecker::removeLinguServiceEventListener(
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!bDisposing && rxLstnr.is())
{
bRes = GetPropHelper().removeLinguServiceEventListener( rxLstnr );
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index 8db3f293ea47..679aba9a0a95 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -255,7 +255,7 @@ sal_Bool SAL_CALL Thesaurus::hasLocale(const Locale& rLocale)
{
MutexGuard aGuard( GetLinguMutex() );
- sal_Bool bRes = sal_False;
+ bool bRes = false;
if (!aSuppLocales.getLength())
getLocales();
sal_Int32 nLen = aSuppLocales.getLength();
@@ -264,7 +264,7 @@ sal_Bool SAL_CALL Thesaurus::hasLocale(const Locale& rLocale)
const Locale *pLocale = aSuppLocales.getConstArray();
if (rLocale == pLocale[i])
{
- bRes = sal_True;
+ bRes = true;
break;
}
}