summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 15:15:04 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 13:05:04 +0200
commit1a2aaa65325c26a50000adcab73e0a81b9004522 (patch)
tree70107db2b31f26856e380bb2718241fbf6b57aeb /sc
parentb205c11549aea1e470b994d9fb53fca859b8a80f (diff)
sal_Bool->bool
Change-Id: I268fb15d84ba8f78ddd73cc4db8e34d1520be3e9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/tpsort.cxx4
-rw-r--r--sc/source/ui/inc/sortdlg.hxx12
-rw-r--r--sc/source/ui/inc/tpsort.hxx4
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;