diff --git a/src/chart/generator/axis.h b/src/chart/generator/axis.h index d43429f6b..70b59a16e 100644 --- a/src/chart/generator/axis.h +++ b/src/chart/generator/axis.h @@ -170,7 +170,7 @@ struct Axis struct Axises : AbstractAxises { - Geom::Point origo() const; + [[nodiscard]] Geom::Point origo() const; }; } diff --git a/src/chart/generator/plotbuilder.h b/src/chart/generator/plotbuilder.h index 2c3a8f3fb..0c03170d2 100644 --- a/src/chart/generator/plotbuilder.h +++ b/src/chart/generator/plotbuilder.h @@ -41,7 +41,8 @@ class PlotBuilder void clearEmptyBuckets(const Buckets &buckets, bool main) const; void addSpecLayout(Buckets &buckets); - Math::Range &getMeasTrackRange(ChannelId type) const; + [[nodiscard]] Math::Range &getMeasTrackRange( + ChannelId type) const; }; }