Skip to content
Permalink
Browse files
Coverity fixes
  • Loading branch information
m-kuhn committed May 26, 2015
1 parent 95a7408 commit 7af658f8f8002dd4d3c6e4a307fb2758de015d4d
@@ -138,6 +138,7 @@ QgsGeometry* QgsMapToolDeletePart::partUnderPoint( QPoint point, QgsFeatureId& f
{
fid = match.featureId();
partNum = snapVertex;
delete geomPart;
return QgsGeometry::fromPoint( match.point() );
}
if ( g->wkbType() == QGis::WKBMultiLineString || g->wkbType() == QGis::WKBMultiLineString25D )
@@ -149,6 +150,7 @@ QgsGeometry* QgsMapToolDeletePart::partUnderPoint( QPoint point, QgsFeatureId& f
{
fid = match.featureId();
partNum = part;
delete geomPart;
return QgsGeometry::fromPolyline( mline[part] );
}
snapVertex -= mline[part].count();
@@ -178,6 +180,7 @@ QgsGeometry* QgsMapToolDeletePart::partUnderPoint( QPoint point, QgsFeatureId& f
{
fid = f.id();
partNum = part;
delete geomPart;
return partGeo;
}
}
@@ -7,6 +7,9 @@
class QgsFeatureModel
{
public:
~ QgsFeatureModel()
{}

virtual QModelIndex fidToIndex( QgsFeatureId fid ) = 0;
};

@@ -35,15 +35,12 @@ class QgsPostgresExpressionCompiler

Result compile( const QgsExpression* exp );

inline Result success() { return mSuccess; }

const QString& result() { return mResult; }

private:
Result compile( const QgsExpression::Node* node, QString& str );

private:
Result mSuccess;
QString mResult;
QgsPostgresFeatureSource* mSource;
};
@@ -230,7 +230,7 @@ void TestQgsFields::remove()
fields.remove( 0 );
QCOMPARE( fields.count(), 1 );
QCOMPARE( fields.at( 0 ).name(), QString( "testfield2" ) );
QCOMPARE( fields.indexFromName(QString( "testfield2" )), 0);
QCOMPARE( fields.indexFromName( "testfield2" ), 0 );
}

void TestQgsFields::extend()

0 comments on commit 7af658f

Please sign in to comment.