diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2020-08-21 22:05:01 +0800 |
---|---|---|
committer | Sze Howe Koh <szehowe.koh@gmail.com> | 2020-08-23 23:14:12 +0800 |
commit | be448666268362700d6d66f803eed62b6712e081 (patch) | |
tree | b6cf38159fb89fa188455092c3e2ecaee14ade44 /src/corelib/tools/qline.h | |
parent | 4f12bae8509bb8b120400915d4832f236db73957 (diff) |
QLineF::intersects(): Make the output parameter optional
Change-Id: I1ccd290a81b38db2e86958fa8ce188878484dcc4
Reviewed-by: Konstantin Shegunov <kshegunov@gmail.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/tools/qline.h')
-rw-r--r-- | src/corelib/tools/qline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qline.h b/src/corelib/tools/qline.h index 2798f7015e..066bcecc1b 100644 --- a/src/corelib/tools/qline.h +++ b/src/corelib/tools/qline.h @@ -249,7 +249,7 @@ public: Q_REQUIRED_RESULT QLineF unitVector() const; Q_REQUIRED_RESULT constexpr inline QLineF normalVector() const; - IntersectionType intersects(const QLineF &l, QPointF *intersectionPoint) const; + IntersectionType intersects(const QLineF &l, QPointF *intersectionPoint = nullptr) const; constexpr inline QPointF pointAt(qreal t) const; inline void translate(const QPointF &p); |