Skip to content

Commit ed08c3f

Browse files
committed
Fixing the call to the Diagram::AddDataLine
Details: - The call needed to be updated after the introduction of the DataLine ID - Removed an unused local
1 parent 908deb3 commit ed08c3f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

application/sources/measurement_data_protocol.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ std::string MeasurementDataProtocol::GetProtocolName(void)
3838
std::vector<DiagramSpecialized> MeasurementDataProtocol::ProcessData(std::istream& input_data)
3939
{
4040
std::vector<DiagramSpecialized> assembled_diagrams;
41-
std::string received_data;
4241
std::string actual_line;
4342

4443
while(std::getline(input_data, actual_line))
@@ -81,7 +80,7 @@ std::vector<DiagramSpecialized> MeasurementDataProtocol::ProcessData(std::istrea
8180
// Switching to the next state without a break --> a new line will NOT be fetched, because this line is the headline
8281
}
8382

84-
// The falltrough is not an error in this case, this behaviour needed because there was no diagram title found, the actual_line contains the headline
83+
// The falltrough is not an error in this case, this behaviour needed because there was no diagram title found, the actual_line contains the headline
8584
[[fallthrough]];
8685
case Constants::States::ProcessingHeadline:
8786
// If this is a headline but not a dataline
@@ -101,7 +100,7 @@ std::vector<DiagramSpecialized> MeasurementDataProtocol::ProcessData(std::istrea
101100
}
102101
else
103102
{
104-
actual_diagram.AddNewDataLine(match_results[1]);
103+
actual_diagram.AddNewDataLine(DiagramSpecialized::DataLine_t::invalid_id, match_results[1]);
105104
}
106105

107106
++column_index;

0 commit comments

Comments
 (0)