Skip to content

Commit f041072

Browse files
committedJun 2, 2014
fix some warnings
1 parent 23ed9fd commit f041072

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
 

‎python/analysis/vector/qgsgeometryanalyzer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class QgsGeometryAnalyzer
9090
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
9191
@param p progress dialog or 0 if no progress dialog should be shown
9292
*/
93-
bool eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QList<int>& unlocatedFeatureIds /Out/, const QString& outputLayer,
93+
bool eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QSet<qint64> &unlocatedFeatureIds /Out/, const QString& outputLayer,
9494
const QString& outputFormat, int locationField1, int locationField2 = -1, int offsetField = -1, double offsetScale = 1.0,
9595
bool forceSingleGeometry = false, QgsVectorDataProvider* memoryProvider = 0, QProgressDialog* p = 0 );
9696

‎src/analysis/raster/qgsrastercalcparser.yy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ void joinTmpNodes(QgsRasterCalcNode* parent, QgsRasterCalcNode* left, QgsRasterC
114114

115115
if (left)
116116
{
117-
res = gTmpNodes.removeAll(left);
117+
res = gTmpNodes.removeAll(left) != 0;
118118
Q_ASSERT(res);
119119
}
120120

121121
if (right)
122122
{
123-
res = gTmpNodes.removeAll(right);
123+
res = gTmpNodes.removeAll(right) != 0;
124124
Q_ASSERT(res);
125125
}
126126

‎src/analysis/vector/qgsgeometryanalyzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ void QgsGeometryAnalyzer::bufferFeature( QgsFeature& f, int nProcessedFeatures,
907907
}
908908
}
909909

910-
bool QgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QList<int>& unlocatedFeatureIds, const QString& outputLayer,
910+
bool QgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QgsFeatureIds &unlocatedFeatureIds, const QString& outputLayer,
911911
const QString& outputFormat, int locationField1, int locationField2, int offsetField, double offsetScale,
912912
bool forceSingleGeometry, QgsVectorDataProvider* memoryProvider, QProgressDialog* p )
913913
{
@@ -1009,7 +1009,7 @@ bool QgsGeometryAnalyzer::eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer*
10091009
}
10101010
if ( nOutputFeatures < 1 )
10111011
{
1012-
unlocatedFeatureIds.push_back( fet.id() );
1012+
unlocatedFeatureIds.insert( fet.id() );
10131013
}
10141014
}
10151015

‎src/analysis/vector/qgsgeometryanalyzer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ANALYSIS_EXPORT QgsGeometryAnalyzer
117117
@param memoryProvider memory provider to write output to (can be 0 if output is written to a file)
118118
@param p progress dialog or 0 if no progress dialog should be shown
119119
*/
120-
bool eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QList<int>& unlocatedFeatureIds, const QString& outputLayer,
120+
bool eventLayer( QgsVectorLayer* lineLayer, QgsVectorLayer* eventLayer, int lineField, int eventField, QgsFeatureIds &unlocatedFeatureIds, const QString& outputLayer,
121121
const QString& outputFormat, int locationField1, int locationField2 = -1, int offsetField = -1, double offsetScale = 1.0,
122122
bool forceSingleGeometry = false, QgsVectorDataProvider* memoryProvider = 0, QProgressDialog* p = 0 );
123123

‎src/gui/qgsfieldmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ QVariant QgsFieldModel::data( const QModelIndex &index, int role ) const
162162
if ( !mLayer )
163163
return QVariant();
164164

165-
int exprIdx = index.internalId() - mFields.count();
165+
qint64 exprIdx = index.internalId() - mFields.count();
166166

167167
switch ( role )
168168
{

0 commit comments

Comments
 (0)
Please sign in to comment.