3434#include < QVector>
3535
3636#include " qgsvectorlayer.h"
37-
3837#include " qgsattributeaction.h"
39-
4038#include " qgis.h" // for globals
4139#include " qgsapplication.h"
4240#include " qgsclipper.h"
7169#include " qgsvectorlayerjoinbuffer.h"
7270#include " qgsvectorlayerrenderer.h"
7371#include " qgsvectorlayerundocommand.h"
74-
72+ # include " qgspointv2.h "
7573#include " qgsrendererv2.h"
7674#include " qgssymbolv2.h"
7775#include " qgssymbollayerv2.h"
@@ -2197,7 +2195,7 @@ bool QgsVectorLayer::deleteAttributes( QList<int> attrs )
21972195
21982196 qSort ( attrs.begin (), attrs.end (), qGreater<int >() );
21992197
2200- Q_FOREACH ( int attr, attrs )
2198+ Q_FOREACH ( int attr, attrs )
22012199 {
22022200 if ( deleteAttribute ( attr ) )
22032201 {
@@ -2971,7 +2969,7 @@ void QgsVectorLayer::uniqueValues( int index, QList<QVariant> &uniqueValues, int
29712969 if ( mEditBuffer )
29722970 {
29732971 QSet<QString> vals;
2974- Q_FOREACH ( const QVariant& v, uniqueValues )
2972+ Q_FOREACH ( const QVariant& v, uniqueValues )
29752973 {
29762974 vals << v.toString ();
29772975 }
@@ -3779,7 +3777,7 @@ void QgsVectorLayer::invalidateSymbolCountedFlag()
37793777
37803778void QgsVectorLayer::onRelationsLoaded ()
37813779{
3782- Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
3780+ Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
37833781 {
37843782 if ( elem->type () == QgsAttributeEditorElement::AeTypeContainer )
37853783 {
@@ -3788,7 +3786,7 @@ void QgsVectorLayer::onRelationsLoaded()
37883786 continue ;
37893787
37903788 QList<QgsAttributeEditorElement*> relations = cont->findElements ( QgsAttributeEditorElement::AeTypeRelation );
3791- Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
3789+ Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
37923790 {
37933791 QgsAttributeEditorRelation* rel = dynamic_cast < QgsAttributeEditorRelation* >( relElem );
37943792 if ( !rel )
@@ -3857,7 +3855,7 @@ QDomElement QgsAttributeEditorContainer::toDomElement( QDomDocument& doc ) const
38573855 QDomElement elem = doc.createElement ( " attributeEditorContainer" );
38583856 elem.setAttribute ( " name" , mName );
38593857
3860- Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
3858+ Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
38613859 {
38623860 elem.appendChild ( child->toDomElement ( doc ) );
38633861 }
@@ -3878,7 +3876,7 @@ QList<QgsAttributeEditorElement*> QgsAttributeEditorContainer::findElements( Qgs
38783876{
38793877 QList<QgsAttributeEditorElement*> results;
38803878
3881- Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
3879+ Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
38823880 {
38833881 if ( elem->type () == type )
38843882 {
0 commit comments