summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:17:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:44 +0200
commit99b05d1169646710c19c1c20953ed625cb967d9f (patch)
treef0e8b930e31f6eb237a0eafcbc00d93e41e67eef /linguistic
parent0f1e0324312470340b3695c85385e51d1db21e67 (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Idd106e7ab94a7377807872d7742263225b22da28
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdiclist.cxx8
-rw-r--r--linguistic/source/dlistimp.cxx16
-rw-r--r--linguistic/source/gciterator.cxx4
-rw-r--r--linguistic/source/hyphdsp.cxx6
-rw-r--r--linguistic/source/iprcache.cxx2
-rw-r--r--linguistic/source/lngopt.cxx4
-rw-r--r--linguistic/source/lngsvcmgr.cxx2
7 files changed, 21 insertions, 21 deletions
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index 17487591ad31..8394c59d0589 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -398,7 +398,7 @@ ConvDicNameContainer & ConvDicList::GetNameContainer()
uno::Reference< XConversionDictionary > xDic =
pNameContainer->GetByName( pActiveConvDics[i] );
if (xDic.is())
- xDic->setActive( sal_True );
+ xDic->setActive( true );
}
// since there is no UI to active/deactivate the dictionaries
@@ -408,9 +408,9 @@ ConvDicNameContainer & ConvDicList::GetNameContainer()
uno::Reference< XConversionDictionary > xT2SDic(
pNameContainer->GetByName( "ChineseT2S" ), UNO_QUERY );
if (xS2TDic.is())
- xS2TDic->setActive( sal_True );
+ xS2TDic->setActive( true );
if (xT2SDic.is())
- xT2SDic->setActive( sal_True );
+ xT2SDic->setActive( true );
}
return *pNameContainer;
@@ -454,7 +454,7 @@ uno::Reference< XConversionDictionary > SAL_CALL ConvDicList::addNewDictionary(
throw NoSupportException();
else
{
- xRes->setActive( sal_True );
+ xRes->setActive( true );
uno::Any aAny;
aAny <<= xRes;
GetNameContainer().insertByName( rName, aAny );
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index bc1af013c92b..0bf680bd9501 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -424,7 +424,7 @@ sal_Bool SAL_CALL DicList::addDictionary(
osl::MutexGuard aGuard( GetLinguMutex() );
if (bDisposing)
- return sal_False;
+ return false;
bool bRes = false;
if (xDictionary.is())
@@ -446,7 +446,7 @@ sal_Bool SAL_CALL
osl::MutexGuard aGuard( GetLinguMutex() );
if (bDisposing)
- return sal_False;
+ return false;
bool bRes = false;
sal_Int32 nPos = GetDicPos( xDictionary );
@@ -459,7 +459,7 @@ sal_Bool SAL_CALL
if (xDic.is())
{
// deactivate dictionary if not already done
- xDic->setActive( sal_False );
+ xDic->setActive( false );
xDic->removeDictionaryEventListener( xDicEvtLstnrHelper );
}
@@ -479,7 +479,7 @@ sal_Bool SAL_CALL DicList::addDictionaryListEventListener(
osl::MutexGuard aGuard( GetLinguMutex() );
if (bDisposing)
- return sal_False;
+ return false;
DBG_ASSERT(!bReceiveVerbose, "lng : not yet supported");
@@ -499,7 +499,7 @@ sal_Bool SAL_CALL DicList::removeDictionaryListEventListener(
osl::MutexGuard aGuard( GetLinguMutex() );
if (bDisposing)
- return sal_False;
+ return false;
bool bRes = false;
if(xListener.is())
@@ -641,7 +641,7 @@ void DicList::CreateDicList()
if (xIgnAll.is())
{
AddUserData( xIgnAll );
- xIgnAll->setActive( sal_True );
+ xIgnAll->setActive( true );
addDictionary( xIgnAll );
}
@@ -660,7 +660,7 @@ void DicList::CreateDicList()
{
uno::Reference< XDictionary > xDic( getDictionaryByName( pActiveDic[i] ) );
if (xDic.is())
- xDic->setActive( sal_True );
+ xDic->setActive( true );
}
}
@@ -803,7 +803,7 @@ static void AddInternal(
{
if( !aToken.isEmpty() && !IsNumeric( aToken ) )
{
- rDic->add( aToken, sal_False, OUString() );
+ rDic->add( aToken, false, OUString() );
}
}
}
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index cb26ef6f0e35..3133cd78a9fb 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -900,7 +900,7 @@ throw (uno::RuntimeException, std::exception)
{
m_aNotifyListeners.addInterface( xListener );
}
- return sal_True;
+ return true;
}
@@ -912,7 +912,7 @@ throw (uno::RuntimeException, std::exception)
{
m_aNotifyListeners.removeInterface( xListener );
}
- return sal_True;
+ return true;
}
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 42c42e41d9e4..d9990d334eeb 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -316,7 +316,7 @@ Reference< XHyphenatedWord > SAL_CALL
if (GetDicList().is() && IsUseDicList( rProperties, GetPropSet() ))
{
xEntry = GetDicList()->queryDictionaryEntry( aChkWord, rLocale,
- sal_True, sal_False );
+ true, false );
}
if (xEntry.is())
@@ -452,7 +452,7 @@ Reference< XHyphenatedWord > SAL_CALL
if (GetDicList().is() && IsUseDicList( rProperties, GetPropSet() ))
{
xEntry = GetDicList()->queryDictionaryEntry( aChkWord, rLocale,
- sal_True, sal_False );
+ true, false );
}
if (xEntry.is())
@@ -577,7 +577,7 @@ Reference< XPossibleHyphens > SAL_CALL
if (GetDicList().is() && IsUseDicList( rProperties, GetPropSet() ))
{
xEntry = GetDicList()->queryDictionaryEntry( aChkWord, rLocale,
- sal_True, sal_False );
+ true, false );
}
if (xEntry.is())
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index 6fe5af65bd48..e5b38c0eb183 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -110,7 +110,7 @@ void FlushListener::SetDicList( Reference<XSearchableDictionaryList> &rDL )
xDicList = rDL;
if (xDicList.is())
- xDicList->addDictionaryListEventListener( this, sal_False );
+ xDicList->addDictionaryListEventListener( this, false );
}
}
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 891164b5feaa..79bb649ffa61 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -241,7 +241,7 @@ void SAL_CALL LinguProps::setPropertyValue(
if (aOld != rValue && aConfig.SetProperty( pCur->nWID, rValue ))
{
PropertyChangeEvent aChgEvt( static_cast<XPropertySet *>(this), rPropertyName,
- sal_False, pCur->nWID, aOld, rValue );
+ false, pCur->nWID, aOld, rValue );
launchEvent( aChgEvt );
}
}
@@ -318,7 +318,7 @@ void SAL_CALL LinguProps::setFastPropertyValue( sal_Int32 nHandle, const Any& rV
if (aOld != rValue && aConfig.SetProperty( nHandle, rValue ))
{
PropertyChangeEvent aChgEvt( static_cast<XPropertySet *>(this),
- LinguOptions::GetName( nHandle ), sal_False, nHandle, aOld, rValue );
+ LinguOptions::GetName( nHandle ), false, nHandle, aOld, rValue );
launchEvent( aChgEvt );
}
}
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 988bb26a8f27..3f5dbffed017 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -238,7 +238,7 @@ LngSvcMgrListenerHelper::LngSvcMgrListenerHelper(
if (xDicList.is())
{
xDicList->addDictionaryListEventListener(
- static_cast<linguistic2::XDictionaryListEventListener *>(this), sal_False );
+ static_cast<linguistic2::XDictionaryListEventListener *>(this), false );
}
nCombinedLngSvcEvt = 0;