Skip to content

Commit 0496cd1

Browse files
committed
qt5: add operator-> for CodeModelPointer
QAtomicPointer no longer has the method and its usage is never atomic anyways, so just reimplement the method.
1 parent 1ffbce2 commit 0496cd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ApiExtractor/parser/codemodel_pointer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ template <class T> class CodeModelPointer : public QAtomicPointer<T>
5555
{
5656
return (const T *) *this;
5757
}
58+
59+
inline T *operator->() const
60+
{
61+
return this->load();
62+
}
5863
};
5964

6065
#endif // CODEMODEL_POINTER_H

0 commit comments

Comments
 (0)