]> Some of my projects - localmylist.git/commitdiff
Workaround for declared constant
authorAPTX <marek321@gmail.com>
Mon, 23 Jul 2012 01:50:29 +0000 (03:50 +0200)
committerAPTX <marek321@gmail.com>
Mon, 23 Jul 2012 01:50:29 +0000 (03:50 +0200)
localmylist/mylistnode.cpp

index c7deae359c5d6287dc4619fa0a04f3cefbbec2a9..dd256c9ccb3ea1c13d366b98976c8fef513d496a 100644 (file)
@@ -87,7 +87,8 @@ int MyListNode::totalRowCount() const
 
 int MyListNode::nextFetchSize() const
 {
-       return qMin(LIMIT, totalRowCount() - childCount());
+       int limit = LIMIT;
+       return qMin(limit, totalRowCount() - childCount());
 }
 
 bool MyListNode::canFetchMore() const