mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(menu_setting.c) Get rid of memsets
This commit is contained in:
parent
18aec77c10
commit
f488242a8e
@ -1496,9 +1496,7 @@ rarch_setting_t setting_action_setting(const char* name,
|
||||
const char* short_description,
|
||||
const char *group, const char *subgroup)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_ACTION;
|
||||
result.name = name;
|
||||
@ -1530,9 +1528,7 @@ rarch_setting_t setting_action_setting(const char* name,
|
||||
**/
|
||||
rarch_setting_t setting_group_setting(enum setting_type type, const char* name)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
@ -1556,9 +1552,7 @@ rarch_setting_t setting_group_setting(enum setting_type type, const char* name)
|
||||
rarch_setting_t setting_subgroup_setting(enum setting_type type,
|
||||
const char* name, const char *parent_name)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
@ -1592,9 +1586,7 @@ rarch_setting_t setting_float_setting(const char* name,
|
||||
const char *rounding, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_FLOAT;
|
||||
result.name = name;
|
||||
@ -1642,9 +1634,7 @@ rarch_setting_t setting_bool_setting(const char* name,
|
||||
const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_BOOL;
|
||||
result.name = name;
|
||||
@ -1690,9 +1680,7 @@ rarch_setting_t setting_int_setting(const char* name,
|
||||
const char *group, const char *subgroup, change_handler_t change_handler,
|
||||
change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_INT;
|
||||
result.name = name;
|
||||
@ -1732,9 +1720,7 @@ rarch_setting_t setting_uint_setting(const char* name,
|
||||
unsigned int default_value, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_UINT;
|
||||
result.name = name;
|
||||
@ -1777,9 +1763,7 @@ rarch_setting_t setting_hex_setting(const char* name,
|
||||
unsigned int default_value, const char *group, const char *subgroup,
|
||||
change_handler_t change_handler, change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_HEX;
|
||||
result.name = name;
|
||||
@ -1823,9 +1807,7 @@ rarch_setting_t setting_bind_setting(const char* name,
|
||||
const struct retro_keybind* default_value,
|
||||
const char *group, const char *subgroup)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = ST_BIND;
|
||||
result.name = name;
|
||||
@ -1870,9 +1852,7 @@ rarch_setting_t setting_string_setting(enum setting_type type,
|
||||
const char *group, const char *subgroup, change_handler_t change_handler,
|
||||
change_handler_t read_handler)
|
||||
{
|
||||
rarch_setting_t result;
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
rarch_setting_t result = {0};
|
||||
|
||||
result.type = type;
|
||||
result.name = name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user