doc: Correct remaining qdoc warnings in qthreadstorage.cpp

clang required adding template clauses to a few \fn commands.

Change-Id: I9972f793b05f423456878514eeaaa19baf8a9785
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Martin Smith 2018-01-03 13:44:58 +01:00
parent b09ad740f6
commit 8ba8efb839

View File

@ -260,13 +260,13 @@ void QThreadStorageData::finish(void **p)
*/ */
/*! /*!
\fn QThreadStorage::QThreadStorage() \fn template <class T> QThreadStorage<T>::QThreadStorage()
Constructs a new per-thread data storage object. Constructs a new per-thread data storage object.
*/ */
/*! /*!
\fn QThreadStorage::~QThreadStorage() \fn template <class T> QThreadStorage<T>::~QThreadStorage()
Destroys the per-thread data storage object. Destroys the per-thread data storage object.
@ -278,7 +278,7 @@ void QThreadStorageData::finish(void **p)
*/ */
/*! /*!
\fn bool QThreadStorage::hasLocalData() const \fn template <class T> bool QThreadStorage<T>::hasLocalData() const
If T is a pointer type, returns \c true if the calling thread has If T is a pointer type, returns \c true if the calling thread has
non-zero data available. non-zero data available.
@ -290,7 +290,7 @@ void QThreadStorageData::finish(void **p)
*/ */
/*! /*!
\fn T &QThreadStorage::localData() \fn template <class T> T &QThreadStorage<T>::localData()
Returns a reference to the data that was set by the calling Returns a reference to the data that was set by the calling
thread. thread.
@ -302,7 +302,7 @@ void QThreadStorageData::finish(void **p)
*/ */
/*! /*!
\fn const T QThreadStorage::localData() const \fn template <class T> const T QThreadStorage<T>::localData() const
\overload \overload
Returns a copy of the data that was set by the calling thread. Returns a copy of the data that was set by the calling thread.
@ -311,7 +311,7 @@ void QThreadStorageData::finish(void **p)
*/ */
/*! /*!
\fn void QThreadStorage::setLocalData(T data) \fn template <class T> void QThreadStorage<T>::setLocalData(T data)
Sets the local data for the calling thread to \a data. It can be Sets the local data for the calling thread to \a data. It can be
accessed later using the localData() functions. accessed later using the localData() functions.