[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib/graphicsview
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2009-07-30 15:23:56
Message-ID: 1248967436.511157.29179.nullmailer () svn ! kde ! org
[Download RAW message or body]

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 ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic