Merge pull request #108 from slsdetectorgroup/removeget

Removeget
This commit is contained in:
Dhanya Thattil
2020-06-19 14:24:32 +02:00
committed by GitHub
24 changed files with 387 additions and 482 deletions

View File

@ -1088,8 +1088,7 @@ int ClientInterface::set_flipped_data(Interface &socket) {
}
int ClientInterface::set_file_format(Interface &socket) {
fileFormat f = GET_FILE_FORMAT;
socket.Receive(f);
auto f = socket.Receive<fileFormat>();
if (f < 0 || f > NUM_FILE_FORMATS) {
throw RuntimeError("Invalid file format: " + std::to_string(f));
}