Skip to content

Commit dc0b929

Browse files
author
jef
committed
fix warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@9594 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eae79e3 commit dc0b929

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ void QgsRasterLayer::computeMinimumMaximumEstimates( QString theBand, double* th
12281228
*/
12291229
QgsContrastEnhancement* QgsRasterLayer::contrastEnhancement( unsigned int theBand )
12301230
{
1231-
if ( 0 < theBand && theBand <= ( int ) bandCount() )
1231+
if ( 0 < theBand && theBand <= bandCount() )
12321232
{
12331233
return &mContrastEnhancementList[theBand - 1];
12341234
}

src/core/raster/qgsrasterlayer.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,9 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
771771
/** \brief List containing the contrast enhancements for each band */
772772
ContrastEnhancementList mContrastEnhancementList;
773773

774+
/** \brief Number of stddev to plot (0) to ignore. Not applicable to all layer types */
775+
double mStandardDeviations;
776+
774777
/** [ data provider interface ] Pointer to data provider derived from the abstract base class QgsDataProvider */
775778
QgsRasterDataProvider* mDataProvider;
776779

@@ -806,6 +809,9 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
806809
/** \brief Whether this raster has overviews / pyramids or not */
807810
bool mHasPyramids;
808811

812+
/** \brief Raster width */
813+
int mWidth;
814+
809815
/** \brief Raster height */
810816
int mHeight;
811817

@@ -847,9 +853,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
847853
/** \brief Flag to indicate of the min max values are actual or estimates/user defined */
848854
bool mRGBMinimumMaximumEstimated;
849855

850-
/** \brief Number of stddev to plot (0) to ignore. Not applicable to all layer types */
851-
double mStandardDeviations;
852-
853856
/** \brief The band to be associated with transparency */
854857
QString mTransparencyBandName;
855858

@@ -861,9 +864,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
861864

862865
/** \brief Flag indicating if the nodatavalue is valid*/
863866
bool mValidNoDataValue;
864-
865-
/** \brief Raster width */
866-
int mWidth;
867867
};
868868

869869
#endif

src/gui/qgsquickprint.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ void QgsQuickPrint::printMap()
229229
//sensible default to prevent divide by zero
230230
if ( 0 == myOriginalDpi ) myOriginalDpi = 96;
231231
QSize myOriginalSize = mpMapRenderer->outputSize();
232-
int mySymbolScalingAmount = myPrintResolutionDpi / myOriginalDpi;
233232

234233
//define the font sizes and family
235234
int myMapTitleFontSize = 24;

src/plugins/interpolation/DualEdgeTriangulation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ int DualEdgeTriangulation::baseEdgeOfTriangle( Point3D* point )
473473
int nulls = 0;//number of left-of-tests, which returned 0. 1 means, that the point is on a line, 2 means that it is on an existing point
474474
int numinstabs = 0;//number of suspect left-of-tests due to 'leftOfTresh'
475475
int runs = 0;//counter for the number of iterations in the loop to prevent an endless loop
476-
int firstendp, secendp, thendp, fouendp;//four numbers of endpoints in cases when two left-of-test are 0
476+
int firstendp = 0, secendp = 0, thendp = 0, fouendp = 0; //four numbers of endpoints in cases when two left-of-test are 0
477477

478478
while ( true )
479479
{

0 commit comments

Comments
 (0)