summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:16:37 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:26:03 -0400
commitbe7118a8edbda898acd47042fe6810b4eec91cad (patch)
tree12cdc19d54bc3f95c5121f74cf6d1952013e29d2 /editeng
parent8e3a77c0ef07c8dffb10a557560613f971a62a35 (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I626b79e1450d78aec96c206db82bf64a47305d08 (cherry picked from commit 9ad66e5ae924b22c589601085c0a7355073a1daf)
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 b73b6bb3b629..895b86c700db 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -1482,7 +1482,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2182,7 +2182,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2210,7 +2210,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) );
@@ -2220,7 +2220,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2245,7 +2245,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) );
@@ -2255,7 +2255,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2285,7 +2285,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 );
@@ -2296,7 +2296,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2324,7 +2324,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) );
@@ -2336,7 +2336,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2366,7 +2366,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) );
@@ -2379,7 +2379,7 @@ namespace accessibility
}
catch (const uno::RuntimeException&)
{
- return sal_False;
+ return false;
}
}
@@ -2402,7 +2402,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?
@@ -2434,11 +2434,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 8952f11b0d0e..c1725507b918 100644
--- a/editeng/source/editeng/editview.cxx
+++ b/editeng/source/editeng/editview.cxx
@@ -891,7 +891,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();
@@ -1018,7 +1018,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 5c6cc67b77db..f4b45c035deb 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1335,7 +1335,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++ )
@@ -2161,7 +2161,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 4c987d3151d5..be42d6a8e8e6 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1812,7 +1812,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 f6ca4f8d39ab..1830d0a3cb40 100644
--- a/editeng/source/misc/acorrcfg.cxx
+++ b/editeng/source/misc/acorrcfg.cxx
@@ -573,7 +573,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 04c5733415d5..0b3f608971cb 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -436,7 +436,7 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic()
{
xDic = SvxGetOrCreatePosDic( xDicList );
if (xDic.is())
- xDic->setActive( sal_True );
+ xDic->setActive( true );
}
}
@@ -468,7 +468,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 9d6739a1d51e..078833856486 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2345,7 +2345,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 20649398115c..ec9ef0963ba8 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 181ff4a4d9ff..6b723c5f71c5 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 08312ac708b6..da506462856c 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)