From 281cbc8548732ed2d4ab20330823d93a8bbf46dc Mon Sep 17 00:00:00 2001 From: Fatih Uzunoglu <fuzun54@outlook.com> Date: Thu, 31 Aug 2023 17:14:25 +0300 Subject: [PATCH] qt: add const to psz_config (cherry picked from commit b55e37761a557c49f8b424a198106fa95fdd702a) --- modules/gui/qt/components/open_panels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/qt/components/open_panels.cpp b/modules/gui/qt/components/open_panels.cpp index 61d2359b52bc..6a9bf6c2635b 100644 --- a/modules/gui/qt/components/open_panels.cpp +++ b/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 ); -- GitLab