diff options
author | Michele Calgaro <[email protected]> | 2018-11-28 00:04:05 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-11-28 00:04:05 +0900 |
commit | 6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (patch) | |
tree | 154aa555033fe887b9b56d8a559000c89b166f1e /tdepasswd/tdepasswd.cpp | |
parent | 3c2da5f0e188e1f1152da840bdf8d94ceb509671 (diff) | |
download | tdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.tar.gz tdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.zip |
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdepasswd/tdepasswd.cpp')
-rw-r--r-- | tdepasswd/tdepasswd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdepasswd/tdepasswd.cpp b/tdepasswd/tdepasswd.cpp index 7df4aaf47..41567bf28 100644 --- a/tdepasswd/tdepasswd.cpp +++ b/tdepasswd/tdepasswd.cpp @@ -47,21 +47,21 @@ int main(int argc, char **argv) KUniqueApplication app; KUser ku; - TQCString user; + TQString user; bool bRoot = ku.isSuperUser(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if (args->count()) - user = args->arg(0); + user = TQString(args->arg(0)); /* You must be able to run "tdepasswd loginName" */ - if ( !user.isEmpty() && user!=KUser().loginName().utf8() && !bRoot) + if ( !user.isEmpty() && user!=KUser().loginName() && !bRoot) { KMessageBox::sorry(0, i18n("You need to be root to change the password of other users.")); return 0; } - TQCString oldpass; + TQString oldpass; if (!bRoot) { int result = TDEpasswd1Dialog::getPassword(oldpass); |