diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-28 11:58:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-28 13:44:18 +0200 |
commit | 433a36118998e8a33eaef726891e2475f0e9395e (patch) | |
tree | 5f52ac6269a66b2b0c18986462459a046d9b9a03 /sw | |
parent | 3c20a55d07b6b74d2ab69e76617d3bfffd885f13 (diff) |
SwView::PageUp/DownCrsr return types want to be bool
Change-Id: I3466798845cf41f6c6db1dcd586b366b8a99c588
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/inc/view.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewport.cxx | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/inc/view.hxx b/sw/source/uibase/inc/view.hxx index 8cd1d5cf01ca..5aaba5ac2855 100644 --- a/sw/source/uibase/inc/view.hxx +++ b/sw/source/uibase/inc/view.hxx @@ -299,8 +299,8 @@ class SW_DLLPUBLIC SwView: public SfxViewShell // scrollbar movements SAL_DLLPRIVATE long PageUp(); SAL_DLLPRIVATE long PageDown(); - SAL_DLLPRIVATE long PageUpCrsr(bool bSelect); - SAL_DLLPRIVATE long PageDownCrsr(bool bSelect); + SAL_DLLPRIVATE bool PageUpCrsr(bool bSelect); + SAL_DLLPRIVATE bool PageDownCrsr(bool bSelect); SAL_DLLPRIVATE long PhyPageUp(); SAL_DLLPRIVATE long PhyPageDown(); diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index bcdca2d8e6df..00e31429a9e0 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -619,7 +619,7 @@ long SwView::PhyPageDown() return 1; } -long SwView::PageUpCrsr( bool bSelect ) +bool SwView::PageUpCrsr( bool bSelect ) { if ( !bSelect ) { @@ -629,7 +629,7 @@ long SwView::PageUpCrsr( bool bSelect ) m_pWrtShell->MoveCrsr(); m_pWrtShell->GotoFtnAnchor(); m_pWrtShell->Right(CRSR_SKIP_CHARS, false, 1, false ); - return 1; + return true; } } @@ -640,12 +640,12 @@ long SwView::PageUpCrsr( bool bSelect ) PageUp() ) { m_pWrtShell->ResetCursorStack(); - return sal_True; + return true; } - return sal_False; + return false; } -long SwView::PageDownCrsr(bool bSelect) +bool SwView::PageDownCrsr(bool bSelect) { SwTwips lOff = 0; if ( GetPageScrollDownOffset( lOff ) && @@ -654,9 +654,9 @@ long SwView::PageDownCrsr(bool bSelect) PageDown() ) { m_pWrtShell->ResetCursorStack(); - return sal_True; + return true; } - return sal_False; + return false; } // Handler of the scrollbars |