From 6492b716b372d0f929f98a2965e00e10a0355204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 30 Nov 2018 16:17:09 +0100 Subject: Improved previous commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko Signed-off-by: Michele Calgaro --- certmanager/lib/ui/passphrasedialog.cpp | 2 +- certmanager/lib/ui/passphrasedialog.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'certmanager') diff --git a/certmanager/lib/ui/passphrasedialog.cpp b/certmanager/lib/ui/passphrasedialog.cpp index e9f1e3e9..990f93cd 100644 --- a/certmanager/lib/ui/passphrasedialog.cpp +++ b/certmanager/lib/ui/passphrasedialog.cpp @@ -100,7 +100,7 @@ Kleo::PassphraseDialog::~PassphraseDialog() { delete d; d = 0; } -const TQString Kleo::PassphraseDialog::passphrase() const { +TQString Kleo::PassphraseDialog::passphrase() const { return d->lineedit->password(); } diff --git a/certmanager/lib/ui/passphrasedialog.h b/certmanager/lib/ui/passphrasedialog.h index 2416f811..6515fa4c 100644 --- a/certmanager/lib/ui/passphrasedialog.h +++ b/certmanager/lib/ui/passphrasedialog.h @@ -63,13 +63,13 @@ namespace Kleo { bool modal=true ); ~PassphraseDialog(); - const TQString passphrase() const; + TQString passphrase() const; signals: /** emitted when the user clicks Ok. \a pass is never NULL. \c pass only valid inside slots connected to this signal. */ - void finished( const TQString pass ); + void finished( const TQString &pass ); /** emitted when the user clicks Cancel. */ void canceled(); -- cgit v1.2.3