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

List:       kde-commits
Subject:    [Knipptasch] f77e4c9: This pointer must be valid here.
From:       Stefan "Böhmann" <kde () hilefoks ! org>
Date:       2010-12-01 4:03:02
Message-ID: 20101201040302.D43F6A60B1 () git ! kde ! org
[Download RAW message or body]

commit f77e4c967bd747c76002bb59b0b7661e40f77f0b
branch master
Author: Stefan Böhmann <kde@hilefoks.org>
Date:   Wed Dec 1 05:01:09 2010 +0100

    This pointer must be valid here.

diff --git a/src/backend/account.cpp b/src/backend/account.cpp
index cdf74ba..7b5a1b2 100644
--- a/src/backend/account.cpp
+++ b/src/backend/account.cpp
@@ -83,7 +83,8 @@ bool Account::isModified() const
     }
 
     foreach(const Posting *p, d->postings) {
-        if( p && p->isModified() ) {
+        Q_ASSERT( p );
+        if( p->isModified() ) {
             d->modified = true;
             return true;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

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