@@ -140,8 +140,8 @@ void Paging<T>::iterate(const std::function<bool (T, qint64)> &iterator, qint64
140
140
// continue to the next one
141
141
auto max = calcMax (to);
142
142
if (index < max && d->iPaging ->hasNext ()) {
143
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
144
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
143
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
144
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
145
145
next ()->onSucceeded ([iterator, to, index ](int , const Paging<T> &paging) {
146
146
if (paging.isValid ())
147
147
paging.iterate(iterator, to, index );
@@ -161,8 +161,8 @@ void Paging<T>::iterate(QObject *scope, const std::function<bool (T, qint64)> &i
161
161
// continue to the next one
162
162
auto max = calcMax (to);
163
163
if (index < max && d->iPaging ->hasNext ()) {
164
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
165
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
164
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
165
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
166
166
next ()->onSucceeded (scope, [scope, iterator, to, index ](int , const Paging<T> &paging) {
167
167
if (paging.isValid ())
168
168
paging.iterate(scope, iterator, to, index );
@@ -183,8 +183,8 @@ void Paging<T>::iterate(const std::function<bool(T, qint64)> &iterator, const st
183
183
// continue to the next one
184
184
auto max = calcMax (to);
185
185
if (index < max && d->iPaging ->hasNext ()) {
186
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
187
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
186
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
187
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
188
188
next<EO>()->onSucceeded ([iterator, errorHandler, failureTransformer, to, index ](int , const Paging<T> &paging) {
189
189
if (paging.isValid ())
190
190
paging.iterate(iterator, errorHandler, failureTransformer, to, index );
@@ -206,8 +206,8 @@ void Paging<T>::iterate(QObject *scope, const std::function<bool(T, qint64)> &it
206
206
// continue to the next one
207
207
auto max = calcMax (to);
208
208
if (index < max && d->iPaging ->hasNext ()) {
209
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
210
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
209
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
210
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
211
211
next<EO>()->onSucceeded (scope, [scope, iterator, errorHandler, failureTransformer, to, index ](int , const Paging<T> &paging) {
212
212
if (paging.isValid ())
213
213
paging.iterate(scope, iterator, errorHandler, failureTransformer, to, index );
@@ -229,8 +229,8 @@ void Paging<T>::iterate(const std::function<bool(T, qint64)> &iterator, const st
229
229
// continue to the next one
230
230
auto max = calcMax (to);
231
231
if (index < max && d->iPaging ->hasNext ()) {
232
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
233
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
232
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
233
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
234
234
next<EO>()->onSucceeded ([iterator, failureHandler, errorHandler, exceptionHandler, to, index ](int , const Paging<T> &paging) {
235
235
if (paging.isValid ())
236
236
paging.iterate(iterator, failureHandler, errorHandler, exceptionHandler, to, index );
@@ -254,8 +254,8 @@ void Paging<T>::iterate(QObject *scope, const std::function<bool(T, qint64)> &it
254
254
// continue to the next one
255
255
auto max = calcMax (to);
256
256
if (index < max && d->iPaging ->hasNext ()) {
257
- qCDebug (logPaging) << " Requesting next paging object with offset" << index
258
- << " as " << d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo);
257
+ qCDebug (logPaging, " Requesting next paging object with offset %s as %s " , QString::number ( index ),
258
+ d->iPaging ->next ().toString (QUrl::PrettyDecoded | QUrl::RemoveUserInfo) );
259
259
next<EO>()->onSucceeded (scope, [scope, iterator, failureHandler, errorHandler, exceptionHandler, to, index ](int , const Paging<T> &paging) {
260
260
if (paging.isValid ())
261
261
paging.iterate(scope, iterator, failureHandler, errorHandler, exceptionHandler, to, index );
@@ -292,9 +292,9 @@ qint64 Paging<T>::internalIterate(const std::function<bool (T, qint64)> &iterato
292
292
max = static_cast <int >(std::min (to, offset + count) - offset);
293
293
}
294
294
295
- qCDebug (logPaging). nospace () << " iterating over available range ["
296
- << offset + start << " : "
297
- << offset + max - 1 << " ] " ;
295
+ qCDebug (logPaging, " iterating over available range [%s:%s] " ,
296
+ QString::number ( offset + start),
297
+ QString::number ( offset + max - 1 )) ;
298
298
299
299
// delete unused items caused by from
300
300
for (auto j = 0 ; j < start; ++j)
@@ -307,8 +307,8 @@ qint64 Paging<T>::internalIterate(const std::function<bool (T, qint64)> &iterato
307
307
auto item = d->data .value (i);
308
308
auto index = offset >= 0 ? offset + i : -1ll ;
309
309
if (!iterator (item, index )) {
310
- qCDebug (logPaging) << " Iterator stopped paging iteration at index"
311
- << index ;
310
+ qCDebug (logPaging, " Iterator stopped paging iteration at index %s " ,
311
+ QString::number ( index )) ;
312
312
canceled = true ;
313
313
break ;
314
314
}
0 commit comments