diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:05:02 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:05:02 +0000 |
| commit | 4f9276659d25ba625de36a0c2b0a7eef5c57f0cc (patch) | |
| tree | 9ba3323f3494dc9528076dec4b7761e42cc55d48 /tests/tests.cpp | |
| parent | 75a0cb2036ebd6c1913caec6d4d9c4497481ec2f (diff) | |
| download | qxmpp-4f9276659d25ba625de36a0c2b0a7eef5c57f0cc.tar.gz | |
improve QXmppPasswordChecker return codes
Diffstat (limited to 'tests/tests.cpp')
| -rw-r--r-- | tests/tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } }; |
