Skip to content

Commit b9ab4ae

Browse files
committed
fix clang-tidy
1 parent ccd8bc5 commit b9ab4ae

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/chart/rendering/renderedchart.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ bool Marker::bounds(const CoordinateSystem &coordSys,
5050
switch (shapeType) {
5151
case Gen::ShapeType::rectangle:
5252
case Gen::ShapeType::area:
53-
return pointsToQuad(points, 0.1)
54-
.contains(point, 0.01);
53+
return pointsToQuad(0.1).contains(point, 0.01);
5554
case Gen::ShapeType::circle:
5655
return Geom::Circle(Geom::Rect::Boundary(points),
5756
Geom::Circle::FromRect::sameWidth)
@@ -66,9 +65,7 @@ bool Marker::bounds(const CoordinateSystem &coordSys,
6665
return isInside != false;
6766
}
6867

69-
Geom::ConvexQuad Marker::pointsToQuad(
70-
const std::array<Geom::Point, 4> &points,
71-
double atLeastWidth) const
68+
Geom::ConvexQuad Marker::pointsToQuad(double atLeastWidth) const
7269
{
7370
if (const auto &[p0, p1, p2, p3] = points;
7471
p0 == p1 && p0 == p2 && p0 == p3) {

src/chart/rendering/renderedchart.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class Marker
4545

4646
private:
4747
[[nodiscard]] Geom::ConvexQuad pointsToQuad(
48-
const std::array<Geom::Point, 4> &points,
4948
double atLeastWidthIfDot) const;
5049

5150
[[nodiscard]] Geom::ConvexQuad lineToQuad(

0 commit comments

Comments
 (0)