Skip to content

Commit 49429c0

Browse files
committedFeb 2, 2012
fix sip gps bindings
1 parent 24bf0ba commit 49429c0

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed
 

‎python/core/qgsgpsconnectionregistry.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public:
1313
/**Unregisters connection. The registry does no longer own the connection*/
1414
void unregisterConnection(QgsGPSConnection* c);
1515

16-
QList<const QgsGPSConnection*> connectionList() const;
16+
QList< QgsGPSConnection *> connectionList() const;
1717

1818
protected:
1919
QgsGPSConnectionRegistry();

‎src/core/gps/qgsgpsconnectionregistry.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,7 @@ void QgsGPSConnectionRegistry::unregisterConnection( QgsGPSConnection* c )
5353
mConnections.remove( c );
5454
}
5555

56-
QList< const QgsGPSConnection* > QgsGPSConnectionRegistry::connectionList() const
56+
QList< QgsGPSConnection* > QgsGPSConnectionRegistry::connectionList() const
5757
{
58-
QList< const QgsGPSConnection* > list;
59-
60-
QSet<QgsGPSConnection*>::const_iterator it = mConnections.constBegin();
61-
for ( ; it != mConnections.constEnd(); ++it )
62-
{
63-
list.append( *it );
64-
}
65-
66-
return list;
58+
return mConnections.toList();
6759
}

‎src/core/gps/qgsgpsconnectionregistry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CORE_EXPORT QgsGPSConnectionRegistry
3636
/**Unregisters connection. The registry does no longer own the connection*/
3737
void unregisterConnection( QgsGPSConnection* c );
3838

39-
QList< const QgsGPSConnection* > connectionList() const;
39+
QList< QgsGPSConnection * > connectionList() const;
4040

4141

4242
protected:

0 commit comments

Comments
 (0)
Please sign in to comment.