Kaydet (Commit) 6f9976db authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I266d7ce86a30cedd1ae388a69b87f1b43d96e00c
üst 2cfe8894
...@@ -136,7 +136,7 @@ void FilterDialog::ChangeFilters( const FilterNameList* pFilterNames ) ...@@ -136,7 +136,7 @@ void FilterDialog::ChangeFilters( const FilterNameList* pFilterNames )
*//*-*************************************************************************************************************/ *//*-*************************************************************************************************************/
bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem ) bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem )
{ {
bool bSelected = sal_False; bool bSelected = false;
if( m_pFilterNames != NULL ) if( m_pFilterNames != NULL )
{ {
......
...@@ -46,8 +46,8 @@ void LoginDialog::HideControls_Impl( sal_uInt16 nFlags ) ...@@ -46,8 +46,8 @@ void LoginDialog::HideControls_Impl( sal_uInt16 nFlags )
} }
else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY ) else if ( ( nFlags & LF_PATH_READONLY ) == LF_PATH_READONLY )
{ {
m_pPathED->Enable( sal_False ); m_pPathED->Enable( false );
m_pPathBtn->Enable( sal_False ); m_pPathBtn->Enable( false );
} }
if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME ) if ( ( nFlags & LF_NO_USERNAME ) == LF_NO_USERNAME )
...@@ -57,7 +57,7 @@ void LoginDialog::HideControls_Impl( sal_uInt16 nFlags ) ...@@ -57,7 +57,7 @@ void LoginDialog::HideControls_Impl( sal_uInt16 nFlags )
} }
else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY ) else if ( ( nFlags & LF_USERNAME_READONLY ) == LF_USERNAME_READONLY )
{ {
m_pNameED->Enable( sal_False ); m_pNameED->Enable( false );
} }
if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD ) if ( ( nFlags & LF_NO_PASSWORD ) == LF_NO_PASSWORD )
......
...@@ -62,7 +62,7 @@ MasterPasswordCreateDialog::MasterPasswordCreateDialog(Window* pParent, ResMgr* ...@@ -62,7 +62,7 @@ MasterPasswordCreateDialog::MasterPasswordCreateDialog(Window* pParent, ResMgr*
get(m_pEDMasterPasswordCrt, "password1"); get(m_pEDMasterPasswordCrt, "password1");
get(m_pEDMasterPasswordRepeat, "password2"); get(m_pEDMasterPasswordRepeat, "password2");
get(m_pOKBtn, "ok"); get(m_pOKBtn, "ok");
m_pOKBtn->Enable( sal_False ); m_pOKBtn->Enable( false );
m_pOKBtn->SetClickHdl( LINK( this, MasterPasswordCreateDialog, OKHdl_Impl ) ); m_pOKBtn->SetClickHdl( LINK( this, MasterPasswordCreateDialog, OKHdl_Impl ) );
m_pEDMasterPasswordCrt->SetModifyHdl( LINK( this, MasterPasswordCreateDialog, EditHdl_Impl ) ); m_pEDMasterPasswordCrt->SetModifyHdl( LINK( this, MasterPasswordCreateDialog, EditHdl_Impl ) );
} }
......
...@@ -73,8 +73,8 @@ PasswordDialog::PasswordDialog( ...@@ -73,8 +73,8 @@ PasswordDialog::PasswordDialog(
OUString aTitle(ResId(STR_TITLE_ENTER_PASSWORD, *pResourceMgr).toString()); OUString aTitle(ResId(STR_TITLE_ENTER_PASSWORD, *pResourceMgr).toString());
aFTConfirmPassword.Hide(); aFTConfirmPassword.Hide();
aEDConfirmPassword.Hide(); aEDConfirmPassword.Hide();
aFTConfirmPassword.Enable( sal_False ); aFTConfirmPassword.Enable( false );
aEDConfirmPassword.Enable( sal_False ); aEDConfirmPassword.Enable( false );
// settings for create password // settings for create password
if (nDialogMode == task::PasswordRequestMode_PASSWORD_CREATE) if (nDialogMode == task::PasswordRequestMode_PASSWORD_CREATE)
...@@ -85,8 +85,8 @@ PasswordDialog::PasswordDialog( ...@@ -85,8 +85,8 @@ PasswordDialog::PasswordDialog(
aFTConfirmPassword.Show(); aFTConfirmPassword.Show();
aEDConfirmPassword.Show(); aEDConfirmPassword.Show();
aFTConfirmPassword.Enable( sal_True ); aFTConfirmPassword.Enable( true );
aEDConfirmPassword.Enable( sal_True ); aEDConfirmPassword.Enable( true );
} }
else else
{ {
......
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