From 768c74383cbd9f3a423a4ac0e0fb8565f4a5868c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Jan 2014 11:28:39 +0100 Subject: bool improvements Change-Id: Iab6343064ad002bd11660aeb8c88c54562109cbc --- sfx2/source/view/viewfrm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 9ed3d77ebec5..f084f8f125c0 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -3262,10 +3262,10 @@ void SfxViewFrame::ToggleChildWindow(sal_uInt16 nId) //-------------------------------------------------------------------- -sal_Bool SfxViewFrame::HasChildWindow( sal_uInt16 nId ) +bool SfxViewFrame::HasChildWindow( sal_uInt16 nId ) { SfxWorkWindow* pWork = GetWorkWindow_Impl( nId ); - return pWork ? pWork->HasChildWindow_Impl(nId) : sal_False; + return pWork && pWork->HasChildWindow_Impl(nId); } //-------------------------------------------------------------------- -- cgit