From 5ab7a0238f19631f9be0ed29e0bd8599b7b53c6d Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 13 Jan 1998 18:49:13 +0000 Subject: [PATCH] [Roberto] Fixed the usual buglets egcs triggers * defaults on 2 implementations * missing () in a function call insinde an if Already told the author, and he approved it. (I really think more developers should try egcs!) svn path=/trunk/kdenetwork/kmail/; revision=4183 --- kpgp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kpgp.cpp b/kpgp.cpp index 08ac897ad..ef9620e9a 100644 --- a/kpgp.cpp +++ b/kpgp.cpp @@ -174,7 +174,7 @@ Kpgp::prepare(bool needPassPhrase) void Kpgp::cleanupPass(void) { - if(!storePassPhrase) + if(!storePassPhrase()) { passPhrase.replace(QRegExp(".")," "); passPhrase = 0; @@ -199,7 +199,7 @@ Kpgp::decrypt(void) } bool -Kpgp::encryptFor(const QStrList& aPers, bool sign = TRUE) +Kpgp::encryptFor(const QStrList& aPers, bool sign) { int action = ENCRYPT; QString persStr; @@ -353,7 +353,7 @@ Kpgp::changePassPhrase(const QString /*oldPass*/, } void -Kpgp::clear(bool erasePassPhrase = FALSE) +Kpgp::clear(bool erasePassPhrase) { if(erasePassPhrase && havePassPhrase && !passPhrase.isEmpty()) {