From 6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 28 Nov 2018 00:04:05 +0900 Subject: Adapted to new KPasswordEdit::password() signature. This relates to bug 2961. Signed-off-by: Michele Calgaro --- tdepasswd/tdepasswd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tdepasswd/tdepasswd.cpp') 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); -- cgit v1.2.1