[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
wilder-work
Roberto Alsina 29 years ago
parent 5475308ee2
commit 5ab7a0238f
  1. 6
      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())
{

Loading…
Cancel
Save