[vlc-commits] Qt: messages: fix visibility warning

Francois Cartegnie git at videolan.org
Fri Mar 2 17:36:09 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar  2 16:22:52 2012 +0100| [474f83908e14a6ab7c282bcaecee72c863bb069e] | committer: Francois Cartegnie

Qt: messages: fix visibility warning

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

 modules/gui/qt4/dialogs/external.cpp |   12 ++++++------
 modules/gui/qt4/dialogs/messages.cpp |   10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index 59e3493..5765b11 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -38,12 +38,12 @@
 #include <QPushButton>
 #include <QTimer>
 
-DialogHandler::DialogHandler (intf_thread_t *intf, QObject *_parent)
-    : QObject( _parent ), intf (intf),
-      critical (VLC_OBJECT(intf), "dialog-critical"),
-      login (VLC_OBJECT(intf), "dialog-login"),
-      question (VLC_OBJECT(intf), "dialog-question"),
-      progressBar (VLC_OBJECT(intf), "dialog-progress-bar")
+DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent)
+    : QObject( _parent ), intf (p_intf),
+      critical (VLC_OBJECT(p_intf), "dialog-critical"),
+      login (VLC_OBJECT(p_intf), "dialog-login"),
+      question (VLC_OBJECT(p_intf), "dialog-question"),
+      progressBar (VLC_OBJECT(p_intf), "dialog-progress-bar")
 {
     var_Create (intf, "dialog-error", VLC_VAR_ADDRESS);
     var_AddCallback (intf, "dialog-error", error, this);
diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index e0d84d9..8a416b8 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -86,9 +86,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
     /* Buttons and general layout */
     ui.saveLogButton->setToolTip( qtr( "Saves all the displayed logs to a file" ) );
 
-    int verbosity = var_InheritInteger( p_intf, "verbose" );
-    vlc_atomic_set( &this->verbosity, verbosity );
-    ui.verbosityBox->setValue( verbosity );
+    int i_verbosity = var_InheritInteger( p_intf, "verbose" );
+    changeVerbosity( i_verbosity );
+    ui.verbosityBox->setValue( i_verbosity );
 
     char *objs = var_InheritString( p_intf, "verbose-objects" );
     if( objs != NULL )
@@ -130,9 +130,9 @@ MessagesDialog::~MessagesDialog()
     vlc_Unsubscribe( sub );
 };
 
-void MessagesDialog::changeVerbosity( int verbosity )
+void MessagesDialog::changeVerbosity( int i_verbosity )
 {
-    vlc_atomic_set( &this->verbosity, verbosity );
+    vlc_atomic_set( &this->verbosity, i_verbosity );
 }
 
 void MessagesDialog::updateConfig()



More information about the vlc-commits mailing list