Kaydet (Commit) 2e7c6b86 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Michael Stahl

sal_Bool->bool in padmin

Change-Id: Ica624c28b4e423531be3ef6a601f266d1cad1d07
üst 4faa36e4
...@@ -40,7 +40,7 @@ ProgressDialog::ProgressDialog( Window* pParent, ...@@ -40,7 +40,7 @@ ProgressDialog::ProgressDialog( Window* pParent,
maProgressBar( this, PaResId( RID_PROGRESS_STATUSBAR ) ), maProgressBar( this, PaResId( RID_PROGRESS_STATUSBAR ) ),
mnMax( nMax ), mnMax( nMax ),
mnMin( nMin ), mnMin( nMin ),
mbCanceled( sal_False ) mbCanceled( false )
{ {
maFilename.SetStyle( maFilename.GetStyle() | WB_PATHELLIPSIS ); maFilename.SetStyle( maFilename.GetStyle() | WB_PATHELLIPSIS );
if( ! bCancelable ) if( ! bCancelable )
...@@ -64,7 +64,7 @@ void ProgressDialog::startOperation( const String& rOperation ) ...@@ -64,7 +64,7 @@ void ProgressDialog::startOperation( const String& rOperation )
{ {
maOperation.SetText( rOperation ); maOperation.SetText( rOperation );
maProgressBar.SetValue( 0 ); maProgressBar.SetValue( 0 );
mbCanceled = sal_False; mbCanceled = false;
if( ! IsVisible() ) if( ! IsVisible() )
Show( sal_True ); Show( sal_True );
} }
...@@ -86,7 +86,7 @@ IMPL_LINK( ProgressDialog, ClickBtnHdl, Button*, pButton ) ...@@ -86,7 +86,7 @@ IMPL_LINK( ProgressDialog, ClickBtnHdl, Button*, pButton )
{ {
if( pButton == &maCancelButton ) if( pButton == &maCancelButton )
{ {
mbCanceled = sal_True; mbCanceled = true;
} }
return 0; return 0;
} }
......
...@@ -37,7 +37,7 @@ namespace padmin { ...@@ -37,7 +37,7 @@ namespace padmin {
ProgressBar maProgressBar; ProgressBar maProgressBar;
int mnMax, mnMin; int mnMax, mnMin;
sal_Bool mbCanceled; bool mbCanceled;
public: public:
ProgressDialog( Window*, sal_Bool bCancelable = sal_True, int nMin = 0, int nMax = 100 ); ProgressDialog( Window*, sal_Bool bCancelable = sal_True, int nMin = 0, int nMax = 100 );
...@@ -50,7 +50,7 @@ namespace padmin { ...@@ -50,7 +50,7 @@ namespace padmin {
void startOperation( const String& ); void startOperation( const String& );
void setFilename( const String& ); void setFilename( const String& );
sal_Bool isCanceled() { return mbCanceled; } bool isCanceled() { return mbCanceled; }
}; };
} // namespace } // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment