mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove redundant const_cast() form QPointer operators
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
bd1dd09757
commit
9ced5f8d87
1 changed files with 4 additions and 4 deletions
|
@ -70,13 +70,13 @@ public:
|
|||
{ return !o; }
|
||||
|
||||
inline T* operator->() const
|
||||
{ return static_cast<T*>(const_cast<QObject*>(o)); }
|
||||
{ return static_cast<T*>(o); }
|
||||
inline T& operator*() const
|
||||
{ return *static_cast<T*>(const_cast<QObject*>(o)); }
|
||||
{ return *static_cast<T*>(o); }
|
||||
inline operator T*() const
|
||||
{ return static_cast<T*>(const_cast<QObject*>(o)); }
|
||||
{ return static_cast<T*>(o); }
|
||||
inline T* data() const
|
||||
{ return static_cast<T*>(const_cast<QObject*>(o)); }
|
||||
{ return static_cast<T*>(o); }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue