[vlmc-devel] Toggleable: Add "T operator->() const"

Yikai Lu git at videolan.org
Wed Jun 1 18:14:50 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue May  3 12:58:24 2016 +0900| [d38832c616ae646a54a3d0b8e1fc455a36f5c943] | committer: Hugo Beauzée-Luyssen

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

This will be needed by MainWorkflow.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/d38832c616ae646a54a3d0b8e1fc455a36f5c943
---

 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;



More information about the Vlmc-devel mailing list