[vlc-commits] [Git][videolan/vlc][3.0.x] qt: add const to psz_config
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Mar 30 06:40:21 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
281cbc85 by Fatih Uzunoglu at 2025-03-30T06:17:11+00:00
qt: add const to psz_config
(cherry picked from commit b55e37761a557c49f8b424a198106fa95fdd702a)
- - - - -
1 changed file:
- modules/gui/qt/components/open_panels.cpp
Changes:
=====================================
modules/gui/qt/components/open_panels.cpp
=====================================
@@ -333,7 +333,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
QComboBox *discCombo = ui.deviceCombo; /* avoid namespacing in macro */
POPULATE_WITH_DEVS( ppsz_discdevices, discCombo );
char *psz_config = config_GetPsz( p_intf, "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/281cbc8548732ed2d4ab20330823d93a8bbf46dc
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/281cbc8548732ed2d4ab20330823d93a8bbf46dc
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