diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:16:37 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:26:03 -0400 |
commit | be7118a8edbda898acd47042fe6810b4eec91cad (patch) | |
tree | 12cdc19d54bc3f95c5121f74cf6d1952013e29d2 /editeng/source/editeng | |
parent | 8e3a77c0ef07c8dffb10a557560613f971a62a35 (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I626b79e1450d78aec96c206db82bf64a47305d08
(cherry picked from commit 9ad66e5ae924b22c589601085c0a7355073a1daf)
Diffstat (limited to 'editeng/source/editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
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 ); |