Skip to content

Commit

Permalink
Fix compilation GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Jan 11, 2025
1 parent eb59d59 commit f1a4c26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions YUViewLib/src/statistics/StatisticsFileCSV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ void StatisticsFileCSV::loadStatisticData(StatisticsData &statisticsData, int po
this->blockOutsideOfFramePOC = poc;

auto &statTypes = statisticsData.getStatisticsTypes();
auto statIt = std::find_if(statTypes.begin(),
statTypes.end(),
[type](StatisticsType &t) { return t.typeID == type; });
auto statIt = std::find_if(statTypes.begin(), statTypes.end(), [type](StatisticsType &t) {
return t.typeID == type;
});
Q_ASSERT_X(statIt != statTypes.end(), Q_FUNC_INFO, "Stat type not found.");

if (vectorData && statIt->vectorDataOptions)
Expand Down Expand Up @@ -398,11 +398,11 @@ void StatisticsFileCSV::readHeaderFromFile(StatisticsData &statisticsData)
{
if (rowItemList[4] == "map" || rowItemList[4] == "range")
{
aType.valueDataOptions.emplace();
aType.valueDataOptions = StatisticsType::ValueDataOptions();
}
else if (rowItemList[4] == "vector" || rowItemList[4] == "line")
{
aType.vectorDataOptions.emplace();
aType.vectorDataOptions = StatisticsType::VectorDataOptions();
if (rowItemList[4] == "line")
aType.vectorDataOptions->arrowHead = StatisticsType::ArrowHead::none;
}
Expand Down
2 changes: 1 addition & 1 deletion YUViewLib/src/statistics/StatisticsType.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class StatisticsType
{
bool render{true};
bool scaleToBlockSize{};
color::ColorMapper colorMapper;
color::ColorMapper colorMapper{};
};

std::optional<ValueDataOptions> valueDataOptions;
Expand Down

0 comments on commit f1a4c26

Please sign in to comment.