fix TRY_MATCH macro

This commit is contained in:
gb 2023-05-23 11:19:37 +08:00
parent 94fe51b495
commit 1430cbb8be
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ namespace local_utility
// fixed id map // fixed id map
static void init_fixed_id(const char* name, int id, std::map<sane_option_id, int>& mapid) static void init_fixed_id(const char* name, int id, std::map<sane_option_id, int>& mapid)
{ {
#define TRY_MATCH(n, m) \ #define TRY_MATCH(n) \
if(strcmp(SANE_STD_OPT_NAME_##n, name) == 0) \ if(strcmp(SANE_STD_OPT_NAME_##n, name) == 0) \
{ \ { \
mapid[SANE_OPT_ID_##n] = id; \ mapid[SANE_OPT_ID_##n] = id; \