More clang-tidy cleanup

This commit is contained in:
Dan Paulat 2024-12-16 06:26:48 -06:00
parent 80c3cb70d2
commit 0c17744bc6
3 changed files with 7 additions and 7 deletions

View file

@ -42,17 +42,17 @@ ProductSettings::ProductSettings(ProductSettings&&) noexcept = default;
ProductSettings& ProductSettings&
ProductSettings::operator=(ProductSettings&&) noexcept = default; ProductSettings::operator=(ProductSettings&&) noexcept = default;
SettingsVariable<bool>& ProductSettings::show_smoothed_range_folding() const SettingsVariable<bool>& ProductSettings::show_smoothed_range_folding()
{ {
return p->showSmoothedRangeFolding_; return p->showSmoothedRangeFolding_;
} }
SettingsVariable<bool>& ProductSettings::sti_forecast_enabled() const SettingsVariable<bool>& ProductSettings::sti_forecast_enabled()
{ {
return p->stiForecastEnabled_; return p->stiForecastEnabled_;
} }
SettingsVariable<bool>& ProductSettings::sti_past_enabled() const SettingsVariable<bool>& ProductSettings::sti_past_enabled()
{ {
return p->stiPastEnabled_; return p->stiPastEnabled_;
} }

View file

@ -25,9 +25,9 @@ public:
ProductSettings(ProductSettings&&) noexcept; ProductSettings(ProductSettings&&) noexcept;
ProductSettings& operator=(ProductSettings&&) noexcept; ProductSettings& operator=(ProductSettings&&) noexcept;
SettingsVariable<bool>& show_smoothed_range_folding() const; SettingsVariable<bool>& show_smoothed_range_folding();
SettingsVariable<bool>& sti_forecast_enabled() const; SettingsVariable<bool>& sti_forecast_enabled();
SettingsVariable<bool>& sti_past_enabled() const; SettingsVariable<bool>& sti_past_enabled();
static ProductSettings& Instance(); static ProductSettings& Instance();

View file

@ -782,7 +782,7 @@ void Level2ProductView::ComputeSweep()
continue; continue;
} }
std::size_t vertexCount = const std::size_t vertexCount =
(gate > 0) ? kVerticesPerGate_ : kVerticesPerOriginGate_; (gate > 0) ? kVerticesPerGate_ : kVerticesPerOriginGate_;
// Allow pointer arithmetic here, as bounds have already been checked // Allow pointer arithmetic here, as bounds have already been checked