[vlc-commits] gui/qt: actions_manager: const qualification and mem-initializer

Filip Roséen git at videolan.org
Mon Mar 20 13:53:07 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Mar 20 13:41:55 2017 +0100| [b7e070ac7449c5d3464154ad176ded0ef0c15b0a] | committer: Hugo Beauzée-Luyssen

gui/qt: actions_manager: const qualification and mem-initializer

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7e070ac7449c5d3464154ad176ded0ef0c15b0a
---

 modules/gui/qt/actions_manager.cpp | 9 ++++-----
 modules/gui/qt/actions_manager.hpp | 2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/actions_manager.cpp b/modules/gui/qt/actions_manager.cpp
index 0a43b52..14e2d48 100644
--- a/modules/gui/qt/actions_manager.cpp
+++ b/modules/gui/qt/actions_manager.cpp
@@ -39,11 +39,10 @@
 #include "menus.hpp"
 
 ActionsManager::ActionsManager( intf_thread_t * _p_i )
-{
-    p_intf = _p_i;
-    p_rd   = NULL;
-    b_rd_started = false;
-}
+    : p_intf( _p_i )
+    , p_rd( NULL )
+    , b_rd_started( false )
+{ }
 
 ActionsManager::~ActionsManager()
 {
diff --git a/modules/gui/qt/actions_manager.hpp b/modules/gui/qt/actions_manager.hpp
index b545f49..92b80af 100644
--- a/modules/gui/qt/actions_manager.hpp
+++ b/modules/gui/qt/actions_manager.hpp
@@ -73,7 +73,7 @@ private:
     ActionsManager( intf_thread_t  *_p_i );
     virtual ~ActionsManager();
 
-    intf_thread_t       *p_intf;
+    intf_thread_t* const p_intf;
     vlc_renderer_discovery_t *p_rd;
 
     bool  b_rd_started;



More information about the vlc-commits mailing list