Skip to content

Commit

Permalink
qt5: add operator-> for CodeModelPointer
Browse files Browse the repository at this point in the history
QAtomicPointer no longer has the method and its usage is never atomic
anyways, so just reimplement the method.
  • Loading branch information
mathstuf committed Jan 20, 2015
1 parent 1ffbce2 commit 0496cd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ApiExtractor/parser/codemodel_pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ template <class T> class CodeModelPointer : public QAtomicPointer<T>
{
return (const T *) *this;
}

inline T *operator->() const
{
return this->load();
}
};

#endif // CODEMODEL_POINTER_H

0 comments on commit 0496cd1

Please sign in to comment.