调整数据类型
This commit is contained in:
parent
6cb30489bb
commit
2c5183b5b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue