Commit d38832c6 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

Toggleable: Add "T operator->() const"

This will be needed by MainWorkflow.
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 243fd39c
......@@ -44,6 +44,11 @@ class Toggleable
}
T operator->()
{
// Q_ASSERT_X( m_activated == true, "Toggleable<T>::operator->", "Pointer is deactivated" );
return m_ptr;
}
T operator->() const
{
// Q_ASSERT_X( m_activated == true, "Toggleable<T>::operator->", "Pointer is deactivated" );
return m_ptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment