Skip to content

Commit 92e57da

Browse files
committedAug 20, 2011
fix lenny build and some warnings
1 parent e591d1c commit 92e57da

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed
 

‎debian/control.lucid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Build-Depends:
3131
git-core,
3232
doxygen,
3333
graphviz,
34-
txt2tags
34+
txt2tags
3535
Build-Conflicts: libqgis-dev, qgis-dev
3636
Standards-Version: 3.8.4
3737
XS-Python-Version: current

‎src/core/pal/costcalculator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ namespace pal
161161
do
162162
{
163163
discrim += 1.0;
164-
for ( stop = 0; stop < feat->nblp && feat->lPos[stop]->getCost() < discrim; stop++ );
164+
for ( stop = 0; stop < feat->nblp && feat->lPos[stop]->getCost() < discrim; stop++ )
165+
;
165166
}
166167
while ( stop == 0 && discrim < feat->lPos[feat->nblp-1]->getCost() + 2.0 );
167168

‎src/core/pal/problem.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ namespace pal
506506
{
507507
it++;
508508
/* find the next seed not ok */
509-
for ( i = ( seed + 1 ) % nbft; ok[i] && i != seed; i = ( i + 1 ) % nbft );
509+
for ( i = ( seed + 1 ) % nbft; ok[i] && i != seed; i = ( i + 1 ) % nbft )
510+
;
510511

511512
if ( i == seed && ok[seed] )
512513
{
@@ -2693,7 +2694,8 @@ namespace pal
26932694

26942695
for ( seed = ( iter + 1 ) % nbft;
26952696
ok[seed] && seed != iter;
2696-
seed = ( seed + 1 ) % nbft );
2697+
seed = ( seed + 1 ) % nbft )
2698+
;
26972699

26982700
// All seeds are OK
26992701
if ( seed == iter )

‎src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
201201
QgsSymbolV2List symbols = r->symbols();
202202

203203
QgsSymbolLevelsV2Dialog dlg( symbols, r->usingSymbolLevels(), this );
204-
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ), Qt::UniqueConnection );
205-
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ), Qt::UniqueConnection );
204+
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
205+
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
206206

207207
if ( dlg.exec() )
208208
{
@@ -222,6 +222,8 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
222222
}
223223
}
224224

225+
disconnect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
226+
disconnect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
225227
}
226228

227229

‎src/providers/gdal/qgsgdalprovider.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ void QgsGdalProvider::computeMinMax( int theBandNo )
884884
return;
885885
}
886886
GDALRasterBandH myGdalBand = GDALGetRasterBand( mGdalDataset, theBandNo );
887-
int bApproxOK = false;
888887
int bGotMin, bGotMax;
889888
double adfMinMax[2];
890889
adfMinMax[0] = GDALGetRasterMinimum( myGdalBand, &bGotMin );
@@ -1259,7 +1258,6 @@ void QgsGdalProvider::populateHistogram( int theBandNo, QgsRasterBandStats & t
12591258
//vector is not equal to the number of bins
12601259
//i.e if the histogram has never previously been generated or the user has
12611260
//selected a new number of bins.
1262-
bool myCollectHistogramFlag = true;
12631261
if ( theBandStats.histogramVector == 0 ||
12641262
theBandStats.histogramVector->size() != theBinCount ||
12651263
theIgnoreOutOfRangeFlag != theBandStats.isHistogramOutOfRange ||

0 commit comments

Comments
 (0)
Please sign in to comment.