diff options
Diffstat (limited to 'sfx2/source/view/frmload.cxx')
-rw-r--r-- | sfx2/source/view/frmload.cxx | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx index 153ff8e16a10..7849fd1463c7 100644 --- a/sfx2/source/view/frmload.cxx +++ b/sfx2/source/view/frmload.cxx @@ -305,29 +305,24 @@ OUString SfxFrameLoader_Impl::impl_askForFilter_nothrow( const Reference< XInter return sFilterName; } - -namespace +bool lcl_getDispatchResult( const SfxPoolItem* _pResult ) { - bool lcl_getDispatchResult( const SfxPoolItem* _pResult ) - { - if ( !_pResult ) - return false; + if ( !_pResult ) + return false; - // default must be set to true, because some return values - // can't be checked, but nonetheless indicate "success"! - bool bSuccess = true; + // default must be set to true, because some return values + // can't be checked, but nonetheless indicate "success"! + bool bSuccess = true; - // On the other side some special slots return a boolean state, - // which can be set to FALSE. - const SfxBoolItem *pItem = dynamic_cast<const SfxBoolItem*>( _pResult ); - if ( pItem ) - bSuccess = pItem->GetValue(); + // On the other side some special slots return a boolean state, + // which can be set to FALSE. + const SfxBoolItem *pItem = dynamic_cast<const SfxBoolItem*>( _pResult ); + if ( pItem ) + bSuccess = pItem->GetValue(); - return bSuccess; - } + return bSuccess; } - bool SfxFrameLoader_Impl::impl_createNewDocWithSlotParam( const sal_uInt16 _nSlotID, const Reference< XFrame >& i_rxFrame, const bool i_bHidden ) { |