r23632 by jghali - Add const qualifier to PageItem_Line's startPoint() and endPoint()

scribus-commit scribus-commit at lists.scribus.net
Tue Apr 21 00:17:53 UTC 2020


Author: jghali
Date: Tue Apr 21 00:17:53 2020
New Revision: 23632

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23632
Log:
Add const qualifier to PageItem_Line's startPoint() and endPoint()

Modified:
    trunk/Scribus/scribus/pageitem_line.cpp
    trunk/Scribus/scribus/pageitem_line.h

Modified: trunk/Scribus/scribus/pageitem_line.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23632&path=/trunk/Scribus/scribus/pageitem_line.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_line.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_line.cpp	Tue Apr 21 00:17:53 2020
@@ -161,12 +161,12 @@
 	return QString();
 }
 
-QPointF PageItem_Line::startPoint()
+QPointF PageItem_Line::startPoint() const
 {
 	return QPointF(m_xPos, m_yPos);
 }
 
-QPointF PageItem_Line::endPoint()
+QPointF PageItem_Line::endPoint() const
 {
 	double rot = this->rotation();
 	double x = m_xPos + m_width * cos(rot * M_PI / 180.0);

Modified: trunk/Scribus/scribus/pageitem_line.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23632&path=/trunk/Scribus/scribus/pageitem_line.h
==============================================================================
--- trunk/Scribus/scribus/pageitem_line.h	(original)
+++ trunk/Scribus/scribus/pageitem_line.h	Tue Apr 21 00:17:53 2020
@@ -46,8 +46,8 @@
 	void applicableActions(QStringList& actionList) override;
 	QString infoDescription() const override;
 
-	QPointF startPoint();
-	QPointF endPoint();
+	QPointF startPoint() const;
+	QPointF endPoint() const;
 
 	void setLineClip();
 




More information about the scribus-commit mailing list