fix sip gps bindings

This commit is contained in:
Juergen E. Fischer 2012-02-02 08:45:29 +01:00
parent 24bf0baee5
commit 49429c0456
3 changed files with 4 additions and 12 deletions

View File

@ -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();

View File

@ -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();
}

View File

@ -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: