mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
fix sip gps bindings
This commit is contained in:
parent
24bf0baee5
commit
49429c0456
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user