changed to smart ptrs and trying to fix event_handler_tests

This commit is contained in:
Jonas Zeunert
2018-07-11 19:00:24 +02:00
parent 26c63d946d
commit 8b9ec68662
12 changed files with 47 additions and 61 deletions

View File

@@ -42,9 +42,8 @@ void InputGPIOInterface::write_input_col(char data)
}
InputGPIOInterface::InputGPIOInterface(std::string matrix_config_path)
InputGPIOInterface::InputGPIOInterface(std::istream& matrix_config_stream)
{
std::ifstream matrix_config_stream(matrix_config_path);
json matrix_config;
matrix_config_stream >> matrix_config;