[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    kdepim/kmail
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2003-05-28 14:18:42
[Download RAW message or body]

CVS commit by danimo: 

Simplified code, made it so that it is known beforehand what we inherit from using inherits. 
There is also a type property but it a) returns a QString and b) is not implemented in
any of the subclasses. So what can this property be removed?

CCMAIL:kmail@kde.org


  M +4 -5      vacation.cpp   1.11


--- kdepim/kmail/vacation.cpp  #1.10:1.11
@@ -103,8 +103,7 @@ namespace KMail {
     assert( am );
     for ( KMAccount * a = am->first() ; a ; a = am->next() )
-      if ( dynamic_cast<KMail::ImapAccountBase*>(a) ) {
-        KURL u = findUrlForAccount( static_cast<KMail::ImapAccountBase*>(a) );
-        if ( !u.isEmpty() )
-          return u;
+    {
+      if (a->inherits("ImapAccountBase"))
+        return findUrlForAccount( static_cast<KMail::ImapAccountBase*>(a) );
       }
     return KURL();


_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic