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

List:       kde-commits
Subject:    playground/office/kmymoney/kmymoney/mymoney
From:       Fernando Vilas <fvilas () iname ! com>
Date:       2010-05-02 16:28:34
Message-ID: 20100502162834.398B2AC8AB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1121892 by fvilas:

fix strict iterator error

 M  +2 -2      mymoneyfiletest.cpp  


--- trunk/playground/office/kmymoney/kmymoney/mymoney/mymoneyfiletest.cpp #1121891:1121892
@@ -252,13 +252,13 @@
   CPPUNIT_ASSERT(list.count() == 2);
 
   QList<MyMoneyInstitution>::ConstIterator it;
-  it = list.begin();
+  it = list.constBegin();
 
   CPPUNIT_ASSERT((*it).name() == "institution1");
   ++it;
   CPPUNIT_ASSERT((*it).name() == "institution2");
   ++it;
-  CPPUNIT_ASSERT(it == list.end());
+  CPPUNIT_ASSERT(it == list.constEnd());
 }
 
 void MyMoneyFileTest::testInstitutionModify()
[prev in list] [next in list] [prev in thread] [next in thread] 

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