From: APTX Date: Mon, 23 Jul 2012 01:50:29 +0000 (+0200) Subject: Workaround for declared constant X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=b5ffb546e3de48d0b46d3b2a7b183347163250fc;p=localmylist.git Workaround for declared constant --- diff --git a/localmylist/mylistnode.cpp b/localmylist/mylistnode.cpp index c7deae3..dd256c9 100644 --- a/localmylist/mylistnode.cpp +++ b/localmylist/mylistnode.cpp @@ -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