From 6f59894afca1f3aee968be10c98167cd0900340d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 28 Apr 2014 16:49:12 +0300 Subject: [PATCH] WaE: implicit conversion from bool to 'long' Change-Id: Ibe8bf3070fb64b447315b280c7c06a7851f7a7ed --- include/svtools/tabbar.hxx | 2 +- svtools/source/control/tabbar.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index 20e644b7e5e4..bc15dd4c298e 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -389,7 +389,7 @@ private: SVT_DLLPRIVATE void ImplEnableControls(); SVT_DLLPRIVATE void ImplSelect(); SVT_DLLPRIVATE void ImplActivatePage(); - SVT_DLLPRIVATE long ImplDeactivatePage(); + SVT_DLLPRIVATE bool ImplDeactivatePage(); SVT_DLLPRIVATE void ImplPrePaint(); SVT_DLLPRIVATE ImplTabBarItem* ImplGetLastTabBarItem( sal_uInt16 nItemCount ); SVT_DLLPRIVATE Rectangle ImplGetInsertTabRect(ImplTabBarItem* pItem) const; diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 2b1f0ede4784..9183f7331388 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1718,9 +1718,9 @@ void TabBar::ActivatePage() -long TabBar::ImplDeactivatePage() +bool TabBar::ImplDeactivatePage() { - long nRet = DeactivatePage(); + bool nRet = DeactivatePage(); CallEventListeners( VCLEVENT_TABBAR_PAGEDEACTIVATED, reinterpret_cast(sal::static_int_cast(mnCurPageId)) );