diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/polygon.cpp')
| -rw-r--r-- | sources/shiboken6/tests/libsample/polygon.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sources/shiboken6/tests/libsample/polygon.cpp b/sources/shiboken6/tests/libsample/polygon.cpp index a13a3ef5c..789b94ac1 100644 --- a/sources/shiboken6/tests/libsample/polygon.cpp +++ b/sources/shiboken6/tests/libsample/polygon.cpp @@ -1,7 +1,6 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -#include <iostream> #include "polygon.h" Polygon::Polygon(double x, double y) @@ -19,14 +18,12 @@ Polygon::Polygon(PointList points) m_points = points; } -void -Polygon::addPoint(Point point) +void Polygon::addPoint(Point point) { m_points.push_back(point); } -Polygon -Polygon::doublePolygonScale(Polygon polygon) +Polygon Polygon::doublePolygonScale(Polygon polygon) { Polygon result; for (const auto &point : polygon.points()) @@ -34,15 +31,12 @@ Polygon::doublePolygonScale(Polygon polygon) return result; } -void -Polygon::stealOwnershipFromPython(Point* point) +void Polygon::stealOwnershipFromPython(Point *point) { delete point; } -void -Polygon::stealOwnershipFromPython(Polygon* polygon) +void Polygon::stealOwnershipFromPython(Polygon *polygon) { delete polygon; } - |
