diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-19 14:42:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-21 12:19:20 +0200 |
commit | 634081d5de8a7bf88c5d21b5b9082d4eea7da02c (patch) | |
tree | 7deedc6de1e4b7721a5c077d67504cfae10623ba | |
parent | d9fd1d531036c3014de081ab012c556c2a416039 (diff) |
sal_Bool->bool
Change-Id: I65c60ae987263b96ac1a0d727f5c4e33431d7767
-rw-r--r-- | editeng/source/accessibility/AccessibleParaManager.cxx | 10 | ||||
-rw-r--r-- | include/editeng/AccessibleParaManager.hxx | 10 | ||||
-rw-r--r-- | svx/source/accessibility/AccessibleTextHelper.cxx | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx index c9b6479f9101..65d728097dd6 100644 --- a/editeng/source/accessibility/AccessibleParaManager.cxx +++ b/editeng/source/accessibility/AccessibleParaManager.cxx @@ -53,7 +53,7 @@ namespace accessibility maChildren(1), maEEOffset( 0, 0 ), mnFocusedChild( -1 ), - mbActive( sal_False ) + mbActive( false ) { } @@ -139,12 +139,12 @@ namespace accessibility } } - sal_Bool AccessibleParaManager::IsReferencable( WeakPara::HardRefType aChild ) + bool AccessibleParaManager::IsReferencable( WeakPara::HardRefType aChild ) { return aChild.is(); } - sal_Bool AccessibleParaManager::IsReferencable( sal_Int32 nChild ) const + bool AccessibleParaManager::IsReferencable( sal_Int32 nChild ) const { DBG_ASSERT( 0 <= nChild && maChildren.size() > static_cast<size_t>(nChild), "AccessibleParaManager::IsReferencable: invalid index" ); @@ -156,7 +156,7 @@ namespace accessibility } else { - return sal_False; + return false; } } @@ -221,7 +221,7 @@ namespace accessibility ::std::for_each( begin(), end(), aAdapter ); } - void AccessibleParaManager::SetActive( sal_Bool bActive ) + void AccessibleParaManager::SetActive( bool bActive ) { mbActive = bActive; diff --git a/include/editeng/AccessibleParaManager.hxx b/include/editeng/AccessibleParaManager.hxx index 28df246facae..3881a22d81b0 100644 --- a/include/editeng/AccessibleParaManager.hxx +++ b/include/editeng/AccessibleParaManager.hxx @@ -63,7 +63,7 @@ namespace accessibility Hands off also from the implementation pointer if this returns sal_False! */ - sal_Bool is() const { return mxRef.is(); } + bool is() const { return mxRef.is(); } InterfaceType* operator->() const { return mpImpl; } InterfaceType& operator*() const { return *mpImpl; } ::com::sun::star::uno::Reference< UnoInterfaceType >& getRef() { return mxRef; } @@ -182,8 +182,8 @@ namespace accessibility const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(), const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const; - static sal_Bool IsReferencable( WeakPara::HardRefType aChild ); - sal_Bool IsReferencable( sal_Int32 nChild ) const; + static bool IsReferencable( WeakPara::HardRefType aChild ); + bool IsReferencable( sal_Int32 nChild ) const; static void ShutdownPara( const WeakChild& rChild ); Child CreateChild( sal_Int32 nChild, @@ -195,7 +195,7 @@ namespace accessibility // forwarder to all paragraphs /// Make all children active and editable (or off) - void SetActive( sal_Bool bActive = sal_True ); + void SetActive( bool bActive = true ); /// Set state of all children void SetState( const sal_Int16 nStateId ); /// Unset state of all children @@ -324,7 +324,7 @@ namespace accessibility sal_Int32 mnFocusedChild; // whether children are active and editable - sal_Bool mbActive; + bool mbActive; }; } // end of namespace accessibility diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index f2ec44059a86..342131a2efcc 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -1398,7 +1398,7 @@ namespace accessibility SetChildFocus( aSelection.nEndPara, sal_False ); // change children state - maParaManager.SetActive( sal_False ); + maParaManager.SetActive( false ); maLastSelection = ESelection( EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, EE_INDEX_NOT_FOUND); |