Use a non-obsolete constructor for KPasswordDialog.

svn path=/trunk/kdeutils/kdepasswd/; revision=218352
This commit is contained in:
Ravikiran Rajagopal 2003-04-04 19:28:06 +00:00
parent 761195924f
commit 073fbf63ef

View file

@ -73,7 +73,7 @@ int KDEpasswd1Dialog::getPassword(QCString &password, QCString user)
KDEpasswd2Dialog::KDEpasswd2Dialog(const char *oldpass, QCString user) KDEpasswd2Dialog::KDEpasswd2Dialog(const char *oldpass, QCString user)
: KPasswordDialog(NewPassword, "") : KPasswordDialog(NewPassword, false, 0)
{ {
m_Pass = oldpass; m_Pass = oldpass;
m_User = user; m_User = user;
@ -103,7 +103,7 @@ bool KDEpasswd2Dialog::checkPassword(const char *password)
i18n("Use as is"), i18n("Use as is"),
"truncatePassword")) "truncatePassword"))
{ {
case KMessageBox::Yes : case KMessageBox::Yes :
const_cast<char *>(password)[8] = '\000'; const_cast<char *>(password)[8] = '\000';
break; break;
case KMessageBox::No : case KMessageBox::No :