summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-28 20:01:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-28 20:26:25 +0100
commiteba294468bc5a3147f4b710c91ce3e6374cc694a (patch)
tree2ddbebfc8800e4e4654be64668588e95c5596cee /linguistic
parent4d9d22e9cda685d80cabb37f139963eeb12b6db7 (diff)
bool improvements
Change-Id: I2337b6ffd51c24a3d2de80591bf3b989b2c5936d
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdic.cxx4
-rw-r--r--linguistic/source/dicimp.cxx4
-rw-r--r--linguistic/source/dlistimp.cxx2
-rw-r--r--linguistic/source/gciterator.cxx18
-rw-r--r--linguistic/source/hyphdsp.cxx6
-rw-r--r--linguistic/source/lngprophelp.cxx6
-rw-r--r--linguistic/source/misc.cxx6
-rw-r--r--linguistic/source/spelldsp.cxx6
-rw-r--r--linguistic/source/thesdsp.cxx2
9 files changed, 27 insertions, 27 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index 5ef6f8d340bc..62ab0f0c5137 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -85,7 +85,7 @@ void ReadThroughDic( const OUString &rMainURL, ConvDicXMLImport &rImport )
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "failed to get input stream" );
+ DBG_ASSERT( false, "failed to get input stream" );
}
if (!xIn.is())
return;
@@ -246,7 +246,7 @@ void ConvDic::Save()
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "failed to get input stream" );
+ DBG_ASSERT( false, "failed to get input stream" );
}
if (!xStream.is())
return;
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 47391ddbdda5..f50c942b2e81 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -265,7 +265,7 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL)
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "failed to get input stream" );
+ DBG_ASSERT( false, "failed to get input stream" );
}
if (!xStream.is())
return static_cast< sal_uLong >(-1);
@@ -431,7 +431,7 @@ struct TmpDictionary
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "failed to overwrite dict" );
+ DBG_ASSERT( false, "failed to overwrite dict" );
return static_cast< sal_uLong >(-1);
}
return 0;
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index a975808dbd7c..9e2d8d8710fb 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -878,7 +878,7 @@ static sal_Bool IsVers2OrNewer( const OUString& rFileURL, sal_uInt16& nLng, sal_
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "failed to get input stream" );
+ DBG_ASSERT( false, "failed to get input stream" );
}
DBG_ASSERT( xStream.is(), "failed to get stream for read" );
if (!xStream.is())
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 430749ed2b51..230b6074e802 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -161,7 +161,7 @@ static sal_Int32 lcl_SkipWhiteSpaces( const OUString &rText, sal_Int32 nStartPos
}
if (bIllegalArgument)
{
- DBG_ASSERT( 0, "lcl_SkipWhiteSpaces: illegal arguments" );
+ DBG_ASSERT( false, "lcl_SkipWhiteSpaces: illegal arguments" );
}
sal_Int32 nRes = nStartPos;
@@ -196,7 +196,7 @@ static sal_Int32 lcl_BacktraceWhiteSpaces( const OUString &rText, sal_Int32 nSta
}
if (bIllegalArgument)
{
- DBG_ASSERT( 0, "lcl_BacktraceWhiteSpaces: illegal arguments" );
+ DBG_ASSERT( false, "lcl_BacktraceWhiteSpaces: illegal arguments" );
}
sal_Int32 nRes = nStartPos;
@@ -475,12 +475,12 @@ uno::Reference< linguistic2::XProofreader > GrammarCheckingIterator::GetGrammarC
}
else
{
- DBG_ASSERT( 0, "grammar checker does not support required locale" );
+ DBG_ASSERT( false, "grammar checker does not support required locale" );
}
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "instantiating grammar checker failed" );
+ DBG_ASSERT( false, "instantiating grammar checker failed" );
}
}
}
@@ -558,7 +558,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
aRes.nBehindEndOfSentencePosition != nSuggestedEnd
)
{
- DBG_ASSERT( 0, "!! Grammarchecker failed to provide end of sentence !!" );
+ DBG_ASSERT( false, "!! Grammarchecker failed to provide end of sentence !!" );
aRes.nBehindEndOfSentencePosition = nSuggestedEnd;
}
@@ -703,7 +703,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
//!! failed to properly identify the sentence end
if (aTmpRes.nBehindEndOfSentencePosition <= nStartPos)
{
- DBG_ASSERT( 0, "!! Grammarchecker failed to provide end of sentence !!" );
+ DBG_ASSERT( false, "!! Grammarchecker failed to provide end of sentence !!" );
aTmpRes.nBehindEndOfSentencePosition = nSuggestedEndOfSentencePos;
}
@@ -724,7 +724,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
// prevent endless loop by forcefully advancing if needs be...
if (nStartPos <= nOldStartOfSentencePos)
{
- DBG_ASSERT( 0, "end-of-sentence detection failed?" );
+ DBG_ASSERT( false, "end-of-sentence detection failed?" );
nStartPos = nOldStartOfSentencePos + 1;
}
}
@@ -1025,13 +1025,13 @@ void GrammarCheckingIterator::GetConfiguredGCSvcs_Impl()
}
else
{
- DBG_ASSERT( 0, "failed to get aImplNames. Wrong type?" );
+ DBG_ASSERT( false, "failed to get aImplNames. Wrong type?" );
}
}
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "exception caught. Failed to get configured services" );
+ DBG_ASSERT( false, "exception caught. Failed to get configured services" );
}
{
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 0fe658c088b0..815312bad55a 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -338,7 +338,7 @@ Reference< XHyphenatedWord > SAL_CALL
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createInstanceWithArguments failed" );
+ DBG_ASSERT( false, "createInstanceWithArguments failed" );
}
pRef [i] = xHyph;
@@ -468,7 +468,7 @@ Reference< XHyphenatedWord > SAL_CALL
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createInstanceWithArguments failed" );
+ DBG_ASSERT( false, "createInstanceWithArguments failed" );
}
pRef [i] = xHyph;
@@ -592,7 +592,7 @@ Reference< XPossibleHyphens > SAL_CALL
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createWithArguments failed" );
+ DBG_ASSERT( false, "createWithArguments failed" );
}
pRef [i] = xHyph;
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index bf0125ec2be1..44ebd68e4e38 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -469,7 +469,7 @@ sal_Bool PropertyHelper_Spell::propertyChange_Impl( const PropertyChangeEvent& r
break;
}
default:
- DBG_ASSERT( 0, "unknown property" );
+ DBG_ASSERT( false, "unknown property" );
}
if (pbVal)
rEvt.NewValue >>= *pbVal;
@@ -533,7 +533,7 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
case UPH_IS_SPELL_WITH_DIGITS : pbResVal = &bResIsSpellWithDigits; break;
case UPH_IS_SPELL_CAPITALIZATION : pbResVal = &bResIsSpellCapitalization; break;
default:
- DBG_ASSERT( 0, "unknown property" );
+ DBG_ASSERT( false, "unknown property" );
}
if (pbResVal)
pVal[i].Value >>= *pbResVal;
@@ -636,7 +636,7 @@ sal_Bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent&
case UPH_HYPH_MIN_TRAILING : pnVal = &nHyphMinTrailing; break;
case UPH_HYPH_MIN_WORD_LENGTH : pnVal = &nHyphMinWordLength; break;
default:
- DBG_ASSERT( 0, "unknown property" );
+ DBG_ASSERT( false, "unknown property" );
}
if (pnVal)
rEvt.NewValue >>= *pnVal;
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 53f95b3d873f..6ed0510d241c 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -569,7 +569,7 @@ uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars(
if (nOrigHyphenPos == -1 || nOrigHyphenationPos == -1)
{
- DBG_ASSERT( 0, "failed to get nOrigHyphenPos or nOrigHyphenationPos" );
+ DBG_ASSERT( false, "failed to get nOrigHyphenPos or nOrigHyphenationPos" );
}
else
{
@@ -736,7 +736,7 @@ uno::Reference< XSearchableDictionaryList > GetDictionaryList()
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "createInstance failed" );
+ DBG_ASSERT( false, "createInstance failed" );
}
return xRef;
@@ -763,7 +763,7 @@ AppExitListener::AppExitListener()
}
catch (const uno::Exception &)
{
- DBG_ASSERT( 0, "createInstance failed" );
+ DBG_ASSERT( false, "createInstance failed" );
}
}
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index bd995191a367..9438bcb38710 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -380,7 +380,7 @@ sal_Bool SpellCheckerDispatcher::isValid_Impl(
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createInstanceWithArguments failed" );
+ DBG_ASSERT( false, "createInstanceWithArguments failed" );
}
pRef [i] = xSpell;
@@ -566,7 +566,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createInstanceWithArguments failed" );
+ DBG_ASSERT( false, "createInstanceWithArguments failed" );
}
pRef [i] = xSpell;
@@ -697,7 +697,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
{
if (xRes.is())
{
- DBG_ASSERT( 0, "XSetSpellAlternatives not implemented!" );
+ DBG_ASSERT( false, "XSetSpellAlternatives not implemented!" );
}
else if (aProposals.getLength() > 0)
{
diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx
index b79b89be6e93..9d96fc4d9d77 100644
--- a/linguistic/source/thesdsp.cxx
+++ b/linguistic/source/thesdsp.cxx
@@ -178,7 +178,7 @@ Sequence< Reference< XMeaning > > SAL_CALL
}
catch (uno::Exception &)
{
- DBG_ASSERT( 0, "createInstanceWithArguments failed" );
+ DBG_ASSERT( false, "createInstanceWithArguments failed" );
}
pRef[i] = xThes;