diff options
-rw-r--r-- | src/remoteobjects/qremoteobjectabstractitemmodeladapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectabstractitemmodeladapter.cpp b/src/remoteobjects/qremoteobjectabstractitemmodeladapter.cpp index 83bf02e..a7c9be0 100644 --- a/src/remoteobjects/qremoteobjectabstractitemmodeladapter.cpp +++ b/src/remoteobjects/qremoteobjectabstractitemmodeladapter.cpp @@ -255,7 +255,7 @@ QVector<IndexValuePair> QAbstractItemModelSourceAdapter::fetchTree(const QModelI const int columnCount = m_model->columnCount(parent); if (!columnCount || !rowCount) return entries; - entries.reserve(std::min(size_t(rowCount * columnCount), size)); + entries.reserve(std::min(rowCount * columnCount, int(size))); for (int row = 0; row < rowCount && size > 0; ++row) for (int column = 0; column < columnCount && size > 0; ++column) { const auto index = m_model->index(row, column, parent); |