Skip to content

Commit

Permalink
Declare typeinfo for QgsVector to optimise use in Qt containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 23, 2018
1 parent c6a50fe commit 59c9b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/qgsvector.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Will throw a QgsException if called on a vector with length of 0.

};


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define QGSVECTOR_H

#include "qgis_core.h"
#include <QtGlobal>

/**
* \ingroup core
Expand Down Expand Up @@ -161,4 +162,6 @@ class CORE_EXPORT QgsVector

};

Q_DECLARE_TYPEINFO( QgsVector, Q_MOVABLE_TYPE );

#endif // QGSVECTOR_H

0 comments on commit 59c9b97

Please sign in to comment.