Fix Qt 6.4 builds.

Cast from char* to QVariant was removed, use const char* instead.
This commit is contained in:
ts-korhonen
2022-10-14 14:44:36 +03:00
parent 42a03528fd
commit 0dabf88baf
2 changed files with 12 additions and 12 deletions

View File

@@ -442,16 +442,16 @@ hdd_preset_get_num()
return sizeof(hdd_speed_presets) / sizeof(hdd_preset_t);
}
char *
const char *
hdd_preset_getname(int preset)
{
return (char *) hdd_speed_presets[preset].name;
return hdd_speed_presets[preset].name;
}
char *
const char *
hdd_preset_get_internal_name(int preset)
{
return (char *) hdd_speed_presets[preset].internal_name;
return hdd_speed_presets[preset].internal_name;
}
int

View File

@@ -207,8 +207,8 @@ extern double hdd_timing_write(hard_disk_t *hdd, uint32_t addr, uint32_t len);
extern double hdd_timing_read(hard_disk_t *hdd, uint32_t addr, uint32_t len);
extern double hdd_seek_get_time(hard_disk_t *hdd, uint32_t dst_addr, uint8_t operation, uint8_t continuous, double max_seek_time);
int hdd_preset_get_num();
char *hdd_preset_getname(int preset);
extern char *hdd_preset_get_internal_name(int preset);
const char *hdd_preset_getname(int preset);
extern const char *hdd_preset_get_internal_name(int preset);
extern int hdd_preset_get_from_internal_name(char *s);
extern void hdd_preset_apply(int hdd_id);