summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:16:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:39 +0200
commit9ad66e5ae924b22c589601085c0a7355073a1daf (patch)
tree2bc7eef7dc2060c59a32d907280d6213b3b7aa98 /editeng
parentcde88284e8df3c2b943904239cef8b8aedbbf57a (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I626b79e1450d78aec96c206db82bf64a47305d08
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx30
-rw-r--r--editeng/source/editeng/editview.cxx4
-rw-r--r--editeng/source/editeng/impedit.cxx4
-rw-r--r--editeng/source/editeng/impedit3.cxx2
-rw-r--r--editeng/source/misc/acorrcfg.cxx2
-rw-r--r--editeng/source/misc/splwrap.cxx4
-rw-r--r--editeng/source/misc/svxacorr.cxx2
-rw-r--r--editeng/source/misc/unolingu.cxx2
-rw-r--r--editeng/source/uno/UnoForbiddenCharsTable.cxx2
-rw-r--r--editeng/source/uno/unonrule.cxx2
-rw-r--r--editeng/source/uno/unotext.cxx2
-rw-r--r--editeng/source/uno/unotext2.cxx2
-rw-r--r--editeng/source/xml/xmltxtexp.cxx4
13 files changed, 31 insertions, 31 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 2f13278c72df..0e7c1a6c9c8e 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -1474,7 +1474,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2174,7 +2174,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2202,7 +2202,7 @@ namespace accessibility
ESelection aSelection = MakeSelection (nStartIndex + nBulletLen, nEndIndex + nBulletLen);
//if( !rCacheTF.IsEditable( MakeSelection(nStartIndex, nEndIndex) ) )
if( !rCacheTF.IsEditable( aSelection ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
// don't save selection, might become invalid after cut!
//rCacheVF.SetSelection( MakeSelection(nStartIndex, nEndIndex) );
@@ -2212,7 +2212,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2237,7 +2237,7 @@ namespace accessibility
if( aBulletInfo.nParagraph != EE_PARA_NOT_FOUND && aBulletInfo.bVisible )
nBulletLen = aBulletInfo.aText.getLength();
if( !rCacheTF.IsEditable( MakeSelection(nIndex + nBulletLen) ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
// #104400# set empty selection (=> cursor) to given index
//rCacheVF.SetSelection( MakeCursor(nIndex) );
@@ -2247,7 +2247,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2277,7 +2277,7 @@ namespace accessibility
//if( !rCacheTF.IsEditable( MakeSelection(nStartIndex, nEndIndex) ) )
if( !rCacheTF.IsEditable( aSelection ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
//sal_Bool bRet = rCacheTF.Delete( MakeSelection(nStartIndex, nEndIndex) );
bool bRet = rCacheTF.Delete( aSelection );
@@ -2288,7 +2288,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2316,7 +2316,7 @@ namespace accessibility
nBulletLen = aBulletInfo.aText.getLength();
if( !rCacheTF.IsEditable( MakeSelection(nIndex + nBulletLen) ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
// #104400# insert given text at empty selection (=> cursor)
bool bRet = rCacheTF.InsertText( sText, MakeCursor(nIndex + nBulletLen) );
@@ -2328,7 +2328,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2358,7 +2358,7 @@ namespace accessibility
//if( !rCacheTF.IsEditable( MakeSelection(nStartIndex, nEndIndex) ) )
if( !rCacheTF.IsEditable( aSelection ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
// insert given text into given range => replace
//sal_Bool bRet = rCacheTF.InsertText( sReplacement, MakeSelection(nStartIndex, nEndIndex) );
@@ -2371,7 +2371,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2394,7 +2394,7 @@ namespace accessibility
CheckRange(nStartIndex, nEndIndex);
if( !rCacheTF.IsEditable( MakeSelection(nStartIndex, nEndIndex) ) )
- return sal_False; // non-editable area selected
+ return false; // non-editable area selected
// do the indices span the whole paragraph? Then use the outliner map
// TODO: hold it as a member?
@@ -2426,11 +2426,11 @@ namespace accessibility
rCacheTF.QuickFormatDoc();
GetEditSource().UpdateData();
- return sal_True;
+ return true;
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx
index a3ed225779f8..3c0852ea8168 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -870,7 +870,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo
// words could be added.
uno::Reference< linguistic2::XDictionary > xDic( SvxGetOrCreatePosDic( xDicList ) );
if (xDic.is())
- xDic->setActive( sal_True );
+ xDic->setActive( true );
aDics = xDicList->getDictionaries();
pDic = aDics.getConstArray();
@@ -997,7 +997,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo
xDic = xDicList->getDictionaryByName( aDicName );
if (xDic.is())
- xDic->add( aSelected, sal_False, OUString() );
+ xDic->add( aSelected, false, OUString() );
// save modified user-dictionary if it is persistent
Reference< frame::XStorable > xSavDic( xDic, UNO_QUERY );
if (xSavDic.is())
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index d22c03c86214..f4a6dcc32611 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1256,7 +1256,7 @@ OUString ImpEditView::SpellIgnoreWord()
{
Reference< XDictionary > xDic( SvxGetIgnoreAllList(), UNO_QUERY );
if (xDic.is())
- xDic->add( aWord, sal_False, OUString() );
+ xDic->add( aWord, false, OUString() );
EditDoc& rDoc = pEditEngine->GetEditDoc();
sal_Int32 nNodes = rDoc.Count();
for ( sal_Int32 n = 0; n < nNodes; n++ )
@@ -2082,7 +2082,7 @@ void ImpEditView::AddDragAndDropListeners()
pWindow->GetDragGestureRecognizer()->addDragGestureListener( xDGL );
uno::Reference< datatransfer::dnd::XDropTargetListener> xDTL( xDGL, uno::UNO_QUERY );
pWindow->GetDropTarget()->addDropTargetListener( xDTL );
- pWindow->GetDropTarget()->setActive( sal_True );
+ pWindow->GetDropTarget()->setActive( true );
pWindow->GetDropTarget()->setDefaultActions( datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE );
bActiveDragAndDropListener = true;
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index d9ad30227f5e..41d84715c35d 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1810,7 +1810,7 @@ void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, Te
aUserOptions.forbiddenEndCharacters = pForbidden->endLine;
aUserOptions.applyForbiddenRules = static_cast<const SfxBoolItem&>(pNode->GetContentAttribs().GetItem( EE_PARA_FORBIDDENRULES )).GetValue();
aUserOptions.allowPunctuationOutsideMargin = bAllowPunctuationOutsideMargin;
- aUserOptions.allowHyphenateEnglish = sal_False;
+ aUserOptions.allowHyphenateEnglish = false;
i18n::LineBreakResults aLBR = _xBI->getLineBreak(
pNode->GetString(), nMaxBreakPos, aLocale, nMinBreakPos, aHyphOptions, aUserOptions );
diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx
index 5c32f81b8ddb..aaf923366982 100644
--- a/editeng/source/misc/acorrcfg.cxx
+++ b/editeng/source/misc/acorrcfg.cxx
@@ -572,7 +572,7 @@ void SvxSwAutoCorrCfg::ImplCommit()
case 11: bVal = rSwFlags.bAddNonBrkSpace; pValues[nProp].setValue(&bVal, rType); break; // "Format/Option/AddNonBreakingSpace",
// it doesn't exist here - the common flags are used for that -> LM
case 12:
- bVal = sal_True; pValues[nProp].setValue(&bVal, rType);
+ bVal = true; pValues[nProp].setValue(&bVal, rType);
break; // "Format/Option/ChangeDash",
case 13: bVal = rSwFlags.bDelEmptyNode; pValues[nProp].setValue(&bVal, rType); break; // "Format/Option/DelEmptyParagraphs",
case 14: bVal = rSwFlags.bChgUserColl; pValues[nProp].setValue(&bVal, rType); break; // "Format/Option/ReplaceUserStyle",
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index ce565ee80094..39add29e7d93 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -433,7 +433,7 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic()
{
xDic = SvxGetOrCreatePosDic( xDicList );
if (xDic.is())
- xDic->setActive( sal_True );
+ xDic->setActive( true );
}
}
@@ -465,7 +465,7 @@ bool SvxSpellWrapper::FindSpellError()
{
if (IsAllRight() && xAllRightDic.is())
{
- xAllRightDic->add( xAlt->getWord(), sal_False, OUString() );
+ xAllRightDic->add( xAlt->getWord(), false, OUString() );
}
else
{
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index cafb0c0e5998..641c59fc7d56 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2349,7 +2349,7 @@ void SvxAutoCorrectLanguageLists::MakeUserStorage_Impl()
aInfo.NameClash = NameClash::OVERWRITE;
aInfo.NewTitle = aDest.GetName();
aInfo.SourceURL = aSource.GetMainURL( INetURLObject::DECODE_TO_IURI );
- aInfo.MoveData = sal_False;
+ aInfo.MoveData = false;
aAny <<= aInfo;
aNewContent.executeCommand( "transfer", aAny);
}
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx
index 88deb22ce12b..01ae02447b62 100644
--- a/editeng/source/misc/unolingu.cxx
+++ b/editeng/source/misc/unolingu.cxx
@@ -699,7 +699,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard()
if (xTmp.is())
{
xTmpDicList->addDictionary( xTmp );
- xTmp->setActive( sal_True );
+ xTmp->setActive( true );
}
xDic.set( xTmp, UNO_QUERY );
}
diff --git a/editeng/source/uno/UnoForbiddenCharsTable.cxx b/editeng/source/uno/UnoForbiddenCharsTable.cxx
index 34c12d7082e3..0e39bc7cb9e3 100644
--- a/editeng/source/uno/UnoForbiddenCharsTable.cxx
+++ b/editeng/source/uno/UnoForbiddenCharsTable.cxx
@@ -65,7 +65,7 @@ sal_Bool SvxUnoForbiddenCharsTable::hasForbiddenCharacters( const lang::Locale&
SolarMutexGuard aGuard;
if(!mxForbiddenChars.is())
- return sal_False;
+ return false;
const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale );
const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, false );
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 787d575a702c..a6a6841a28cf 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -135,7 +135,7 @@ Type SAL_CALL SvxUnoNumberingRules::getElementType()
sal_Bool SAL_CALL SvxUnoNumberingRules::hasElements() throw( RuntimeException, std::exception )
{
- return sal_True;
+ return true;
}
// XAnyCompare
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 2c5a1a19375a..473f013306b0 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -2031,7 +2031,7 @@ sal_Bool SAL_CALL SvxUnoTextBase::hasElements( ) throw(uno::RuntimeException, s
return pForwarder->GetParagraphCount() != 0;
}
- return sal_False;
+ return false;
}
// text::XTextRangeMover
diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx
index bf4bf7b5c4b1..33eebb34e864 100644
--- a/editeng/source/uno/unotext2.cxx
+++ b/editeng/source/uno/unotext2.cxx
@@ -64,7 +64,7 @@ sal_Bool SAL_CALL SvxUnoTextContentEnumeration::hasMoreElements()
if( mpEditSource && mpEditSource->GetTextForwarder() )
return mnNextParagraph < mpEditSource->GetTextForwarder()->GetParagraphCount();
else
- return sal_False;
+ return false;
}
uno::Any SvxUnoTextContentEnumeration::nextElement() throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception )
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx
index e7fb6702f5c8..28e4f497ed8e 100644
--- a/editeng/source/xml/xmltxtexp.cxx
+++ b/editeng/source/xml/xmltxtexp.cxx
@@ -244,7 +244,7 @@ sal_Bool SAL_CALL SvxSimpleUnoModel::attachResource( const OUString& aURL, const
{
(void)aURL;
(void)aArgs;
- return sal_False;
+ return false;
}
OUString SAL_CALL SvxSimpleUnoModel::getURL( ) throw (css::uno::RuntimeException, std::exception)
@@ -277,7 +277,7 @@ void SAL_CALL SvxSimpleUnoModel::unlockControllers( ) throw (css::uno::RuntimeE
sal_Bool SAL_CALL SvxSimpleUnoModel::hasControllersLocked( ) throw (css::uno::RuntimeException, std::exception)
{
- return sal_True;
+ return true;
}
css::uno::Reference< css::frame::XController > SAL_CALL SvxSimpleUnoModel::getCurrentController( ) throw (css::uno::RuntimeException, std::exception)