diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-28 16:49:12 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-28 19:13:26 +0300 |
commit | 6f59894afca1f3aee968be10c98167cd0900340d (patch) | |
tree | bcf0c56e6fb50381d8bd67166d292e1be993ded1 | |
parent | 5fab47ddbe332a150fb2005e941a2c19bd38ce7f (diff) |
WaE: implicit conversion from bool to 'long'
Change-Id: Ibe8bf3070fb64b447315b280c7c06a7851f7a7ed
-rw-r--r-- | include/svtools/tabbar.hxx | 2 | ||||
-rw-r--r-- | 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<void*>(sal::static_int_cast<sal_IntPtr>(mnCurPageId)) ); |