diff options
Diffstat (limited to 'sw/source/core/access/accselectionhelper.cxx')
-rw-r--r-- | sw/source/core/access/accselectionhelper.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sw/source/core/access/accselectionhelper.cxx b/sw/source/core/access/accselectionhelper.cxx index 3372f434c5a1..96a622ece9f7 100644 --- a/sw/source/core/access/accselectionhelper.cxx +++ b/sw/source/core/access/accselectionhelper.cxx @@ -87,8 +87,7 @@ void SwAccessibleSelectionHelper::selectAccessibleChild( // we can only select fly frames, so we ignore (should: return // false) all other attempts at child selection - SwFEShell* pFEShell = GetFEShell(); - if( pFEShell != nullptr ) + if (GetFEShell()) { const SdrObject *pObj = aChild.GetDrawObject(); if( pObj ) @@ -141,8 +140,7 @@ bool SwAccessibleSelectionHelper::isAccessibleChildSelected( // ... and compare to the currently selected frame bool bRet = false; - const SwFEShell* pFEShell = GetFEShell(); - if( pFEShell ) + if (const SwFEShell* pFEShell = GetFEShell()) { if ( aChild.GetSwFrame() != nullptr ) { @@ -171,7 +169,7 @@ void SwAccessibleSelectionHelper::selectAllAccessibleChildren( ) // the first we can select, and select it. SwFEShell* pFEShell = GetFEShell(); - if( !pFEShell ) + if (!pFEShell) return; std::list< SwAccessibleChild > aChildren; @@ -197,8 +195,7 @@ sal_Int32 SwAccessibleSelectionHelper::getSelectedAccessibleChildCount( ) sal_Int32 nCount = 0; // Only one frame can be selected at a time, and we only frames // for selectable children. - const SwFEShell* pFEShell = GetFEShell(); - if( pFEShell != nullptr ) + if (const SwFEShell* pFEShell = GetFEShell()) { const SwFlyFrame* pFlyFrame = pFEShell->GetSelectedFlyFrame(); if( pFlyFrame ) @@ -250,7 +247,7 @@ Reference<XAccessible> SwAccessibleSelectionHelper::getSelectedAccessibleChild( // be 0, and a selection must exist, otherwise we have to throw an // lang::IndexOutOfBoundsException SwFEShell* pFEShell = GetFEShell(); - if( nullptr == pFEShell ) + if (!pFEShell) throwIndexOutOfBoundsException(); SwAccessibleChild aChild; |