kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Fix sensor const safety in *_search_start_position()
rodzic
f019f9e7b8
commit
1902c9fbcb
|
@ -1815,7 +1815,7 @@ static void gl124_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, dpi, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, dpi, ScanMethod::FLATBED);
|
||||
|
||||
ScanSession session;
|
||||
session.params.xres = dpi;
|
||||
|
|
|
@ -2112,7 +2112,7 @@ static void gl646_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, resolution, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, resolution, ScanMethod::FLATBED);
|
||||
|
||||
/* fill settings for a gray level scan */
|
||||
settings.scan_method = ScanMethod::FLATBED;
|
||||
|
|
|
@ -2894,7 +2894,7 @@ static void gl841_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, dpi, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, dpi, ScanMethod::FLATBED);
|
||||
|
||||
ScanSession session;
|
||||
session.params.xres = dpi;
|
||||
|
|
|
@ -2234,7 +2234,7 @@ static void gl843_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, dpi, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, dpi, ScanMethod::FLATBED);
|
||||
|
||||
ScanSession session;
|
||||
session.params.xres = dpi;
|
||||
|
|
|
@ -1500,7 +1500,7 @@ static void gl846_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, dpi, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, dpi, ScanMethod::FLATBED);
|
||||
|
||||
ScanSession session;
|
||||
session.params.xres = dpi;
|
||||
|
|
|
@ -1557,7 +1557,7 @@ static void gl847_search_start_position(Genesys_Device* dev)
|
|||
|
||||
// FIXME: the current approach of doing search only for one resolution does not work on scanners
|
||||
// whith employ different sensors with potentially different settings.
|
||||
auto& sensor = sanei_genesys_find_sensor_for_write(dev, dpi, ScanMethod::FLATBED);
|
||||
const auto& sensor = sanei_genesys_find_sensor(dev, dpi, ScanMethod::FLATBED);
|
||||
|
||||
ScanSession session;
|
||||
session.params.xres = dpi;
|
||||
|
|
Ładowanie…
Reference in New Issue