[Marble-commits] KDE/kdeedu/marble/src/lib/graphicsview

Ariya Hidayat ariya at kde.org
Thu Jul 30 17:23:56 CEST 2009


SVN commit 1004603 by ariya:

Don't create an extra list and make it a const.


 M  +2 -5      GeoGraphicsItem_p.h  


--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/GeoGraphicsItem_p.h #1004602:1004603
@@ -26,11 +26,8 @@
     virtual ~GeoGraphicsItemPrivate() {
     }
      
-    QList<QPointF> positions() {
-        QList<QPointF> list;
-        
-        list.append( m_positions );
-        return list;
+    QList<QPointF> positions() const {
+        return m_positions;
     }
     
     void setProjection( AbstractProjection *projection, ViewportParams *viewport ) {


More information about the Marble-commits mailing list