diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-30 11:26:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-30 11:26:25 +0900 |
commit | 580ffcad3885e5d24e98a9dffe4962654753136e (patch) | |
tree | d9019fe61ba9d77465eed215e3aa607772d76d39 /tdessh | |
parent | 1d93eb1e7a39aae33ed852b61b490882e101432e (diff) | |
download | tdeutils-580ffcad3885e5d24e98a9dffe4962654753136e.tar.gz tdeutils-580ffcad3885e5d24e98a9dffe4962654753136e.zip |
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdessh')
-rw-r--r-- | tdessh/sshdlg.cpp | 4 | ||||
-rw-r--r-- | tdessh/sshdlg.h | 2 | ||||
-rw-r--r-- | tdessh/tdessh.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tdessh/sshdlg.cpp b/tdessh/sshdlg.cpp index a43c9d0..df30045 100644 --- a/tdessh/sshdlg.cpp +++ b/tdessh/sshdlg.cpp @@ -41,12 +41,12 @@ TDEsshDialog::~TDEsshDialog() } -bool TDEsshDialog::checkPassword(const char *password) +bool TDEsshDialog::checkPassword(const TQString &password) { SshProcess proc(m_Host, m_User); proc.setStub(m_Stub); - int ret = proc.checkInstall(password); + int ret = proc.checkInstall(password.local8Bit()); switch (ret) { case -1: diff --git a/tdessh/sshdlg.h b/tdessh/sshdlg.h index 79415ad..5f4f734 100644 --- a/tdessh/sshdlg.h +++ b/tdessh/sshdlg.h @@ -23,7 +23,7 @@ public: ~TDEsshDialog(); protected: - bool checkPassword(const char *password); + bool checkPassword(const TQString &password); private: TQCString m_User, m_Host, m_Stub; diff --git a/tdessh/tdessh.cpp b/tdessh/tdessh.cpp index d178f4d..042302e 100644 --- a/tdessh/tdessh.cpp +++ b/tdessh/tdessh.cpp @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) exit(1); } - TQCString password; + TQString password; if (needpw != 0) { TDEsshDialog *dlg = new TDEsshDialog(host, user, stub, @@ -188,14 +188,14 @@ int main(int argc, char *argv[]) if (keep && have_daemon) { client.setHost(host); - client.setPass(password, timeout); + client.setPass(password.local8Bit(), timeout); return client.exec(command, user); } else { proc.setCommand(command); proc.setTerminal(terminal); proc.setErase(true); - return proc.exec(password); + return proc.exec(password.local8Bit()); } } |