Skip to content

Commit

Permalink
Name optional function separately. This is problematic on older clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Jan 22, 2025
1 parent ab862ea commit 5b2136a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions YUViewLib/src/statistics/StatisticsFileCSV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ void StatisticsFileCSV::readHeaderFromFile(StatisticsData &statisticsData)
{
// Last type is complete. Store this initial state.
statisticsData.addStatType(StatisticsTypeBuilder(type->typeID, type->typeName)
.withValueDataOptions(type->valueDataOptions)
.withVectorDataOptions(type->vectorDataOptions)
.withOptionalValueDataOptions(type->valueDataOptions)
.withOptionalVectorDataOptions(type->vectorDataOptions)
.withGridOptions(type->gridOptions)
.build());

Expand Down
4 changes: 2 additions & 2 deletions YUViewLib/src/statistics/StatisticsTypeBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class StatisticsTypeBuilder
}

StatisticsTypeBuilder
withValueDataOptions(const std::optional<StatisticsType::ValueDataOptions> &valueDataOptions)
withOptionalValueDataOptions(const std::optional<StatisticsType::ValueDataOptions> &valueDataOptions)
{
this->statisticsType.valueDataOptions = valueDataOptions;
return *this;
Expand All @@ -83,7 +83,7 @@ class StatisticsTypeBuilder
}

StatisticsTypeBuilder
withVectorDataOptions(const std::optional<StatisticsType::VectorDataOptions> &vectorDataOptions)
withOptionalVectorDataOptions(const std::optional<StatisticsType::VectorDataOptions> &vectorDataOptions)
{
this->statisticsType.vectorDataOptions = vectorDataOptions;
return *this;
Expand Down

0 comments on commit 5b2136a

Please sign in to comment.