From 4f9276659d25ba625de36a0c2b0a7eef5c57f0cc Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 29 Mar 2011 14:05:02 +0000 Subject: improve QXmppPasswordChecker return codes --- tests/tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/tests.cpp') diff --git a/tests/tests.cpp b/tests/tests.cpp index f7bb98af..b0eeed0a 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -941,16 +941,16 @@ public: }; /// Retrieves the password for the given username. - bool getPassword(const QString &username, const QString &domain, QString &password) + Error getPassword(const QString &username, const QString &domain, QString &password) { Q_UNUSED(domain); if (username == m_username) { password = m_password; - return true; + return NoError; } else { - return false; + return AuthorizationError; } }; -- cgit v1.2.3