diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-18 15:15:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-19 13:05:04 +0200 |
commit | 1a2aaa65325c26a50000adcab73e0a81b9004522 (patch) | |
tree | 70107db2b31f26856e380bb2718241fbf6b57aeb /sc/source | |
parent | b205c11549aea1e470b994d9fb53fca859b8a80f (diff) |
sal_Bool->bool
Change-Id: I268fb15d84ba8f78ddd73cc4db8e34d1520be3e9
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/sortdlg.hxx | 12 | ||||
-rw-r--r-- | sc/source/ui/inc/tpsort.hxx | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 5eae892e4481..3ee92af491ad 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -776,12 +776,12 @@ void ScTabPageSortOptions::ActivatePage( const SfxItemSet& rSet ) aSortData = static_cast<const ScSortItem&>(rSet.Get( SCITEM_SORTDATA )).GetSortData(); if ( pDlg ) { - if ( m_pBtnHeader->IsChecked() != pDlg->GetHeaders() ) + if ( m_pBtnHeader->IsChecked() != (pDlg->GetHeaders() ? 1 : 0) ) { m_pBtnHeader->Check( pDlg->GetHeaders() ); } - if ( m_pBtnTopDown->IsChecked() != pDlg->GetByRows() ) + if ( m_pBtnTopDown->IsChecked() != (pDlg->GetByRows() ? 1 : 0) ) { m_pBtnTopDown->Check( pDlg->GetByRows() ); m_pBtnLeftRight->Check( !pDlg->GetByRows() ); diff --git a/sc/source/ui/inc/sortdlg.hxx b/sc/source/ui/inc/sortdlg.hxx index f110b379b4b1..82d5dc742769 100644 --- a/sc/source/ui/inc/sortdlg.hxx +++ b/sc/source/ui/inc/sortdlg.hxx @@ -31,14 +31,14 @@ class ScSortDlg : public SfxTabDialog public: ScSortDlg(Window* pParent, const SfxItemSet* pArgSet); - void SetHeaders( sal_Bool bHeaders ) { bIsHeaders = bHeaders; } - void SetByRows ( sal_Bool bByRows ) { bIsByRows = bByRows; } - sal_Bool GetHeaders() const { return bIsHeaders; } - sal_Bool GetByRows () const { return bIsByRows; } + void SetHeaders( bool bHeaders ) { bIsHeaders = bHeaders; } + void SetByRows ( bool bByRows ) { bIsByRows = bByRows; } + bool GetHeaders() const { return bIsHeaders; } + bool GetByRows () const { return bIsByRows; } private: - sal_Bool bIsHeaders; - sal_Bool bIsByRows; + bool bIsHeaders; + bool bIsByRows; }; class ScSortWarningDlg : public ModalDialog diff --git a/sc/source/ui/inc/tpsort.hxx b/sc/source/ui/inc/tpsort.hxx index 2a17c0be89ae..cf8412659322 100644 --- a/sc/source/ui/inc/tpsort.hxx +++ b/sc/source/ui/inc/tpsort.hxx @@ -84,8 +84,8 @@ private: SCCOL nFirstCol; SCROW nFirstRow; - sal_Bool bHasHeader; - sal_Bool bSortByRows; + bool bHasHeader; + bool bSortByRows; ScSortKeyItems maSortKeyItems; ScSortKeyCtrl maSortKeyCtrl; |