]> git.sesse.net Git - vlc/commitdiff
Qt compile fix
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 19:17:09 +0000 (19:17 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 19:17:09 +0000 (19:17 +0000)
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.hpp

index e61d502b3f91c224daab5a3963b1e149a7528d50..5c6bb53a6f9869921386a935de633915b1045d55 100644 (file)
@@ -819,7 +819,7 @@ void KeySelectorControl::doApply()
 }
 
 KeyInputDialog::KeyInputDialog( QList<module_config_t*>& _values,
-                                char * _keyToChange ) :
+                                const char * _keyToChange ) :
                                                 QDialog(0), keyValue(0)
 {
     setModal( true );
index 11e3877c8f5a31218d77b8b732433d7a57302601..f93dd488084770627f88e69ccb7a249d812a26ce 100644 (file)
@@ -55,7 +55,7 @@ public:
     }
     virtual ~ConfigControl() {};
     virtual int getType() = 0;
-    char * getName() { return  p_item->psz_name; }
+    const char * getName() { return  p_item->psz_name; }
     QWidget *getWidget() { assert( widget ); return widget; }
     bool isAdvanced() { return p_item->b_advanced; }
     virtual void hide() { getWidget()->hide(); };
@@ -315,14 +315,14 @@ private slot:
 class KeyInputDialog : public QDialog
 {
 public:
-    KeyInputDialog( QList<module_config_t *> &, char * );
+    KeyInputDialog( QList<module_config_t *> &, const char * );
     int keyValue;
     bool conflicts;
 private:
     void keyPressEvent( QKeyEvent *);
     QLabel *selected;
     QLabel *warning;
-    char * keyToChange;
+    const char * keyToChange;
     QList<module_config_t*> values;
 };