Skip to content

Commit

Permalink
fix sip gps bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 2, 2012
1 parent 24bf0ba commit 49429c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsgpsconnectionregistry.sip
Expand Up @@ -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();
Expand Down
12 changes: 2 additions & 10 deletions src/core/gps/qgsgpsconnectionregistry.cpp
Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion src/core/gps/qgsgpsconnectionregistry.h
Expand Up @@ -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:
Expand Down

0 comments on commit 49429c0

Please sign in to comment.