Skip to content

Commit f1a4c26

Browse files
Fix compilation GCC
1 parent eb59d59 commit f1a4c26

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

YUViewLib/src/statistics/StatisticsFileCSV.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ void StatisticsFileCSV::loadStatisticData(StatisticsData &statisticsData, int po
315315
this->blockOutsideOfFramePOC = poc;
316316

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

323323
if (vectorData && statIt->vectorDataOptions)
@@ -398,11 +398,11 @@ void StatisticsFileCSV::readHeaderFromFile(StatisticsData &statisticsData)
398398
{
399399
if (rowItemList[4] == "map" || rowItemList[4] == "range")
400400
{
401-
aType.valueDataOptions.emplace();
401+
aType.valueDataOptions = StatisticsType::ValueDataOptions();
402402
}
403403
else if (rowItemList[4] == "vector" || rowItemList[4] == "line")
404404
{
405-
aType.vectorDataOptions.emplace();
405+
aType.vectorDataOptions = StatisticsType::VectorDataOptions();
406406
if (rowItemList[4] == "line")
407407
aType.vectorDataOptions->arrowHead = StatisticsType::ArrowHead::none;
408408
}

YUViewLib/src/statistics/StatisticsType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class StatisticsType
101101
{
102102
bool render{true};
103103
bool scaleToBlockSize{};
104-
color::ColorMapper colorMapper;
104+
color::ColorMapper colorMapper{};
105105
};
106106

107107
std::optional<ValueDataOptions> valueDataOptions;

0 commit comments

Comments
 (0)