[vlc-commits] [Git][videolan/vlc][master] qt: add const to psz_config

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Sep 3 15:07:05 UTC 2023



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
b55e3776 by Fatih Uzunoglu at 2023-09-03T14:46:03+00:00
qt: add const to psz_config

- - - - -


1 changed file:

- modules/gui/qt/dialogs/open/open_panels.cpp


Changes:

=====================================
modules/gui/qt/dialogs/open/open_panels.cpp
=====================================
@@ -352,7 +352,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, qt_intf_t *_p_intf ) :
     QComboBox *discCombo = ui.deviceCombo; /* avoid namespacing in macro */
     POPULATE_WITH_DEVS( ppsz_discdevices, discCombo );
     char *psz_config = config_GetPsz( "dvd" );
-    int temp = ui.deviceCombo->findData( psz_config, Qt::UserRole, Qt::MatchStartsWith );
+    int temp = ui.deviceCombo->findData( { const_cast<const char *>( psz_config ) }, Qt::UserRole, Qt::MatchStartsWith );
     free( psz_config );
     if( temp != -1 )
         ui.deviceCombo->setCurrentIndex( temp );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b55e37761a557c49f8b424a198106fa95fdd702a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b55e37761a557c49f8b424a198106fa95fdd702a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list