Skip to content

Commit 89302b8

Browse files
author
Martin Smith
committed
doc: Add a few missing const keywords in \fn commands
This adds "const" to a few \fn commands for new operators in QHash and QMap. Change-Id: I93cf7aaf88fcb4db17de5810b555b978e8119e20 Task-number: QTBUG-47669 Reviewed-by: Topi Reiniö <[email protected]>
1 parent 330da82 commit 89302b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/corelib/tools/qhash.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2240,15 +2240,15 @@ uint qHash(long double key, uint seed) Q_DECL_NOTHROW
22402240
Returns a pointer to the current item's key.
22412241
*/
22422242

2243-
/*! \fn bool QHash::key_iterator::operator==(key_iterator other)
2243+
/*! \fn bool QHash::key_iterator::operator==(key_iterator other) const
22442244
22452245
Returns \c true if \a other points to the same item as this
22462246
iterator; otherwise returns \c false.
22472247
22482248
\sa operator!=()
22492249
*/
22502250

2251-
/*! \fn bool QHash::key_iterator::operator!=(key_iterator other)
2251+
/*! \fn bool QHash::key_iterator::operator!=(key_iterator other) const
22522252
22532253
Returns \c true if \a other points to a different item than this
22542254
iterator; otherwise returns \c false.

src/corelib/tools/qmap.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1719,15 +1719,15 @@ void QMapDataBase::freeData(QMapDataBase *d)
17191719
Returns a pointer to the current item's key.
17201720
*/
17211721

1722-
/*! \fn bool QMap::key_iterator::operator==(key_iterator other)
1722+
/*! \fn bool QMap::key_iterator::operator==(key_iterator other) const
17231723
17241724
Returns \c true if \a other points to the same item as this
17251725
iterator; otherwise returns \c false.
17261726
17271727
\sa operator!=()
17281728
*/
17291729

1730-
/*! \fn bool QMap::key_iterator::operator!=(key_iterator other)
1730+
/*! \fn bool QMap::key_iterator::operator!=(key_iterator other) const
17311731
17321732
Returns \c true if \a other points to a different item than this
17331733
iterator; otherwise returns \c false.

0 commit comments

Comments
 (0)