From d5fead577f3ae40692ace86d02443efc05e37538 Mon Sep 17 00:00:00 2001 From: Bela Schaum Date: Fri, 17 May 2024 18:10:57 +0200 Subject: [PATCH] clang-tidy --- src/chart/generator/axis.h | 2 +- src/chart/generator/plotbuilder.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; }; }