summaryrefslogtreecommitdiffstats
path: root/tdesu
diff options
context:
space:
mode:
Diffstat (limited to 'tdesu')
-rw-r--r--tdesu/tdesu/sudlg.cpp4
-rw-r--r--tdesu/tdesu/sudlg.h2
-rw-r--r--tdesu/tdesu/tdesu.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/tdesu/tdesu/sudlg.cpp b/tdesu/tdesu/sudlg.cpp
index 934930814..e17b3168d 100644
--- a/tdesu/tdesu/sudlg.cpp
+++ b/tdesu/tdesu/sudlg.cpp
@@ -67,11 +67,11 @@ TDEsuDialog::~TDEsuDialog()
{
}
-bool TDEsuDialog::checkPassword(const char *password)
+bool TDEsuDialog::checkPassword(const TQString &password)
{
SuProcess proc;
proc.setUser(m_User);
- int status = proc.checkInstall(password);
+ int status = proc.checkInstall(password.utf8());
switch (status)
{
case -1:
diff --git a/tdesu/tdesu/sudlg.h b/tdesu/tdesu/sudlg.h
index 32d466105..08f4e608a 100644
--- a/tdesu/tdesu/sudlg.h
+++ b/tdesu/tdesu/sudlg.h
@@ -21,7 +21,7 @@ public:
enum ResultCodes { AsUser = 10 };
protected:
- bool checkPassword(const char *password);
+ bool checkPassword(const TQString &password);
void slotUser1();
private:
diff --git a/tdesu/tdesu/tdesu.cpp b/tdesu/tdesu/tdesu.cpp
index d75c0e83a..2849b4c62 100644
--- a/tdesu/tdesu/tdesu.cpp
+++ b/tdesu/tdesu/tdesu.cpp
@@ -344,7 +344,7 @@ static int startApp()
}
// Start the dialog
- TQCString password;
+ TQString password;
if (needpw)
{
TDEStartupInfoId id;
@@ -391,7 +391,7 @@ static int startApp()
}
else if (keep && have_daemon)
{
- client.setPass(password, timeout);
+ client.setPass(password.utf8(), timeout);
client.setPriority(priority);
client.setScheduler(scheduler);
int result = client.exec(command, user, options, env);
@@ -415,7 +415,7 @@ static int startApp()
proc.setPriority(priority);
proc.setScheduler(scheduler);
proc.setCommand(command);
- int result = proc.exec(password);
+ int result = proc.exec(password.utf8());
return result;
}
return -1;