[vlc-devel] [PATCH 5/8] gui/qt: actions_manager: const qualification and mem-initializer
Filip Roséen
filip at atch.se
Mon Mar 20 13:41:55 CET 2017
---
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 0a43b52192..14e2d483f2 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 b545f490ba..92b80afcbb 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;
--
2.12.0
More information about the vlc-devel
mailing list