From b5ffb546e3de48d0b46d3b2a7b183347163250fc Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 23 Jul 2012 03:50:29 +0200 Subject: [PATCH] Workaround for declared constant --- localmylist/mylistnode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.52.0