调整数据类型

This commit is contained in:
gb 2022-06-08 16:42:27 +08:00
parent 6cb30489bb
commit 2c5183b5b8
1 changed files with 2 additions and 6 deletions

View File

@ -1465,9 +1465,7 @@ int hg_scanner::setting_skew_check_level(void* data)
}
int hg_scanner::setting_is_custom_gamma(void* data)
{
SANE_Bool* v = (SANE_Bool*)data;
custom_gamma_ = *v == SANE_TRUE;
custom_gamma_ = *((bool*)data);
return SCANNER_ERR_OK;
}
@ -1481,9 +1479,7 @@ int hg_scanner::setting_custom_gamma_data(void* data)
}
int hg_scanner::setting_is_custom_area(void* data)
{
SANE_Bool* v = (SANE_Bool*)data;
custom_area_ = *v == SANE_TRUE;
custom_area_ = *((bool*)data);
return SCANNER_ERR_OK;
}