QPointerUniqueId::numeric() is const

Obviously it returns a copy of the number, and anyone who has a
const QPointerUniqueId variable will need this accessor to be const.

Change-Id: Ib224a4dfca5d0f71f2fa4f6f6197b2fb2cdb9410
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Shawn Rutledge 2016-07-07 10:23:31 +02:00
parent 753aed83c6
commit a13398d0f0
2 changed files with 2 additions and 2 deletions

View File

@ -5189,7 +5189,7 @@ QPointerUniqueId::QPointerUniqueId(qint64 id)
This is the numeric unique ID if the device provides that type of ID;
otherwise it is -1.
*/
qint64 QPointerUniqueId::numeric()
qint64 QPointerUniqueId::numeric() const
{
return m_numericId;
}

View File

@ -799,7 +799,7 @@ class Q_GUI_EXPORT QPointerUniqueId
public:
explicit QPointerUniqueId(qint64 id = -1);
qint64 numeric();
qint64 numeric() const;
private:
// TODO for TUIO 2, or any other type of complex token ID, a d-pointer can replace