@@ -650,7 +650,7 @@ bool QgsVectorLayer::hasGeometryType() const
650
650
651
651
QGis::WkbType QgsVectorLayer::wkbType () const
652
652
{
653
- return ( QGis::WkbType )( mWkbType ) ;
653
+ return mWkbType ;
654
654
}
655
655
656
656
QgsRectangle QgsVectorLayer::boundingBoxOfSelected ()
@@ -2143,7 +2143,7 @@ bool QgsVectorLayer::deleteAttributes( QList<int> attrs )
2143
2143
2144
2144
qSort ( attrs.begin (), attrs.end (), qGreater<int >() );
2145
2145
2146
- Q_FOREACH ( int attr, attrs )
2146
+ Q_FOREACH ( int attr, attrs )
2147
2147
{
2148
2148
if ( deleteAttribute ( attr ) )
2149
2149
{
@@ -2839,7 +2839,7 @@ void QgsVectorLayer::uniqueValues( int index, QList<QVariant> &uniqueValues, int
2839
2839
if ( mEditBuffer )
2840
2840
{
2841
2841
QSet<QString> vals;
2842
- Q_FOREACH ( const QVariant& v, uniqueValues )
2842
+ Q_FOREACH ( const QVariant& v, uniqueValues )
2843
2843
{
2844
2844
vals << v.toString ();
2845
2845
}
@@ -3565,13 +3565,13 @@ void QgsVectorLayer::invalidateSymbolCountedFlag()
3565
3565
3566
3566
void QgsVectorLayer::onRelationsLoaded ()
3567
3567
{
3568
- Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
3568
+ Q_FOREACH ( QgsAttributeEditorElement* elem, mAttributeEditorElements )
3569
3569
{
3570
3570
if ( elem->type () == QgsAttributeEditorElement::AeTypeContainer )
3571
3571
{
3572
3572
QgsAttributeEditorContainer* cont = dynamic_cast < QgsAttributeEditorContainer* >( elem );
3573
3573
QList<QgsAttributeEditorElement*> relations = cont->findElements ( QgsAttributeEditorElement::AeTypeRelation );
3574
- Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
3574
+ Q_FOREACH ( QgsAttributeEditorElement* relElem, relations )
3575
3575
{
3576
3576
QgsAttributeEditorRelation* rel = dynamic_cast < QgsAttributeEditorRelation* >( relElem );
3577
3577
rel->init ( QgsProject::instance ()->relationManager () );
@@ -3627,7 +3627,7 @@ QDomElement QgsAttributeEditorContainer::toDomElement( QDomDocument& doc ) const
3627
3627
QDomElement elem = doc.createElement ( " attributeEditorContainer" );
3628
3628
elem.setAttribute ( " name" , mName );
3629
3629
3630
- Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
3630
+ Q_FOREACH ( QgsAttributeEditorElement* child, mChildren )
3631
3631
{
3632
3632
elem.appendChild ( child->toDomElement ( doc ) );
3633
3633
}
@@ -3643,7 +3643,7 @@ QList<QgsAttributeEditorElement*> QgsAttributeEditorContainer::findElements( Qgs
3643
3643
{
3644
3644
QList<QgsAttributeEditorElement*> results;
3645
3645
3646
- Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
3646
+ Q_FOREACH ( QgsAttributeEditorElement* elem, mChildren )
3647
3647
{
3648
3648
if ( elem->type () == type )
3649
3649
{
0 commit comments