Skip to content
Snippets Groups Projects
Commit d38832c6 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen
Browse files

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


This will be needed by MainWorkflow.

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 243fd39c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment