summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-06 01:01:08 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-06 01:01:08 +0200
commit2c4b44d7500be72b6eb74c4989e7311b3f924119 (patch)
tree8cf8cb8aa36f18ee9474486178f51c7fe0770ee8 /src/corelib/tools
parent7e2016de5ee6d9cc2c5d6b94fab4bc56a8a33303 (diff)
parent327b305e95187fda869c5af407e78a17e0e381cd (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qlist.h2
-rw-r--r--src/corelib/tools/qpair.qdoc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index be987c359b..425ffa42a5 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -1051,7 +1051,7 @@ int lastIndexOf(const QList<T> &list, const U &u, int from)
Node *n = reinterpret_cast<Node *>(list.p.at(from + 1));
while (n-- != b) {
if (n->t() == u)
- return typename QList<T>::difference_type(n - b);
+ return int(n - b);
}
}
return -1;
diff --git a/src/corelib/tools/qpair.qdoc b/src/corelib/tools/qpair.qdoc
index 59e6931995..65576ef2e6 100644
--- a/src/corelib/tools/qpair.qdoc
+++ b/src/corelib/tools/qpair.qdoc
@@ -28,6 +28,7 @@
/*!
\class QPair
\inmodule QtCore
+ \reentrant
\brief The QPair class is a template class that stores a pair of items.
\ingroup tools