Skip to content

Commit

Permalink
fix lenny build and some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 20, 2011
1 parent e591d1c commit 92e57da
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debian/control.lucid
Expand Up @@ -31,7 +31,7 @@ Build-Depends:
git-core,
doxygen,
graphviz,
txt2tags
txt2tags
Build-Conflicts: libqgis-dev, qgis-dev
Standards-Version: 3.8.4
XS-Python-Version: current
Expand Down
3 changes: 2 additions & 1 deletion src/core/pal/costcalculator.cpp
Expand Up @@ -161,7 +161,8 @@ namespace pal
do
{
discrim += 1.0;
for ( stop = 0; stop < feat->nblp && feat->lPos[stop]->getCost() < discrim; stop++ );
for ( stop = 0; stop < feat->nblp && feat->lPos[stop]->getCost() < discrim; stop++ )
;
}
while ( stop == 0 && discrim < feat->lPos[feat->nblp-1]->getCost() + 2.0 );

Expand Down
6 changes: 4 additions & 2 deletions src/core/pal/problem.cpp
Expand Up @@ -506,7 +506,8 @@ namespace pal
{
it++;
/* find the next seed not ok */
for ( i = ( seed + 1 ) % nbft; ok[i] && i != seed; i = ( i + 1 ) % nbft );
for ( i = ( seed + 1 ) % nbft; ok[i] && i != seed; i = ( i + 1 ) % nbft )
;

if ( i == seed && ok[seed] )
{
Expand Down Expand Up @@ -2693,7 +2694,8 @@ namespace pal

for ( seed = ( iter + 1 ) % nbft;
ok[seed] && seed != iter;
seed = ( seed + 1 ) % nbft );
seed = ( seed + 1 ) % nbft )
;

// All seeds are OK
if ( seed == iter )
Expand Down
6 changes: 4 additions & 2 deletions src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp
Expand Up @@ -201,8 +201,8 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
QgsSymbolV2List symbols = r->symbols();

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

if ( dlg.exec() )
{
Expand All @@ -222,6 +222,8 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
}
}

disconnect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
disconnect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
}


Expand Down
2 changes: 0 additions & 2 deletions src/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -884,7 +884,6 @@ void QgsGdalProvider::computeMinMax( int theBandNo )
return;
}
GDALRasterBandH myGdalBand = GDALGetRasterBand( mGdalDataset, theBandNo );
int bApproxOK = false;
int bGotMin, bGotMax;
double adfMinMax[2];
adfMinMax[0] = GDALGetRasterMinimum( myGdalBand, &bGotMin );
Expand Down Expand Up @@ -1259,7 +1258,6 @@ void QgsGdalProvider::populateHistogram( int theBandNo, QgsRasterBandStats & t
//vector is not equal to the number of bins
//i.e if the histogram has never previously been generated or the user has
//selected a new number of bins.
bool myCollectHistogramFlag = true;
if ( theBandStats.histogramVector == 0 ||
theBandStats.histogramVector->size() != theBinCount ||
theIgnoreOutOfRangeFlag != theBandStats.isHistogramOutOfRange ||
Expand Down

0 comments on commit 92e57da

Please sign in to comment.