[vlmc-devel] [PATCH 4/8] Toggleable: Add "T operator->() const"

Yikai Lu luyikei.qmltu at gmail.com
Tue May 3 07:24:43 CEST 2016


This will be needed by MainWorkflow.
---
 src/Tools/Toggleable.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/Tools/Toggleable.hpp b/src/Tools/Toggleable.hpp
index ad522ba..0f4aff9 100644
--- a/src/Tools/Toggleable.hpp
+++ b/src/Tools/Toggleable.hpp
@@ -47,6 +47,11 @@ class   Toggleable
 //            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;
+        }
         bool    activated() const
         {
             return m_activated;
-- 
1.9.1



More information about the Vlmc-devel mailing list