Skip to content
Permalink
Browse files

fix sip gps bindings

  • Loading branch information
jef-n committed Feb 2, 2012
1 parent 24bf0ba commit 49429c0456c6692adbc30a12d96694f322f3c6ac
@@ -13,7 +13,7 @@ public:
/**Unregisters connection. The registry does no longer own the connection*/
void unregisterConnection(QgsGPSConnection* c);

QList<const QgsGPSConnection*> connectionList() const;
QList< QgsGPSConnection *> connectionList() const;

protected:
QgsGPSConnectionRegistry();
@@ -53,15 +53,7 @@ void QgsGPSConnectionRegistry::unregisterConnection( QgsGPSConnection* c )
mConnections.remove( c );
}

QList< const QgsGPSConnection* > QgsGPSConnectionRegistry::connectionList() const
QList< QgsGPSConnection* > QgsGPSConnectionRegistry::connectionList() const
{
QList< const QgsGPSConnection* > list;

QSet<QgsGPSConnection*>::const_iterator it = mConnections.constBegin();
for ( ; it != mConnections.constEnd(); ++it )
{
list.append( *it );
}

return list;
return mConnections.toList();
}
@@ -36,7 +36,7 @@ class CORE_EXPORT QgsGPSConnectionRegistry
/**Unregisters connection. The registry does no longer own the connection*/
void unregisterConnection( QgsGPSConnection* c );

QList< const QgsGPSConnection* > connectionList() const;
QList< QgsGPSConnection * > connectionList() const;


protected:

0 comments on commit 49429c0

Please sign in to comment.
You can’t perform that action at this time.