Skip to content

Commit 8f3c786

Browse files
committed
fix warnings and identation update
1 parent 95f8973 commit 8f3c786

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

src/core/raster/qgsrasterblock.h

+17-16
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CORE_EXPORT QgsRasterBlock
7272
* @param theDataType raster data type
7373
* @param theWidth width of data matrix
7474
* @param theHeight height of data matrix
75-
* @param theNoDataValue the value representing no data (NULL)
75+
* @param theNoDataValue the value representing no data (NULL)
7676
*/
7777
QgsRasterBlock( DataType theDataType, int theWidth, int theHeight, double theNoDataValue = std::numeric_limits<double>::quiet_NaN() );
7878

@@ -82,7 +82,7 @@ class CORE_EXPORT QgsRasterBlock
8282
* @param theDataType raster data type
8383
* @param theWidth width of data matrix
8484
* @param theHeight height of data matrix
85-
* @param theNoDataValue the value representing no data (NULL)
85+
* @param theNoDataValue the value representing no data (NULL)
8686
* @return true on success
8787
*/
8888
bool reset( DataType theDataType, int theWidth, int theHeight, double theNoDataValue = std::numeric_limits<double>::quiet_NaN() );
@@ -129,6 +129,7 @@ class CORE_EXPORT QgsRasterBlock
129129

130130
int dataTypeSize( int bandNo ) const
131131
{
132+
Q_UNUSED( bandNo );
132133
return typeSize( mDataType );
133134
}
134135

@@ -153,7 +154,7 @@ class CORE_EXPORT QgsRasterBlock
153154
*/
154155
void setNoDataValue( double noDataValue ) { mNoDataValue = noDataValue; }
155156

156-
/** Test if value is nodata comparing to noDataValue
157+
/** Test if value is nodata comparing to noDataValue
157158
* @param value tested value
158159
* @param noDataValue no data value
159160
* @return true if value is nodata */
@@ -173,7 +174,7 @@ class CORE_EXPORT QgsRasterBlock
173174
/** \brief Read a single value
174175
* @param index data matrix index
175176
* @return value */
176-
double value( size_t index) const;
177+
double value( size_t index ) const;
177178

178179
/** \brief Read a single color
179180
* @param row row index
@@ -184,7 +185,7 @@ class CORE_EXPORT QgsRasterBlock
184185
/** \brief Read a single value
185186
* @param index data matrix index
186187
* @return color */
187-
QRgb color( size_t index) const;
188+
QRgb color( size_t index ) const;
188189

189190
/** \brief Check if value at position is no data
190191
* @param row row index
@@ -223,14 +224,14 @@ class CORE_EXPORT QgsRasterBlock
223224
* @return true on success */
224225
bool setColor( size_t index, QRgb color );
225226

226-
/** \brief Get pointer to data
227+
/** \brief Get pointer to data
227228
* @param row row index
228229
* @param column column index
229230
* @retun pointer to data
230231
*/
231232
char * bits( int row, int column );
232233

233-
/** \brief Get pointer to data
234+
/** \brief Get pointer to data
234235
* @param index data matrix index
235236
* @retun pointer to data
236237
*/
@@ -244,12 +245,12 @@ class CORE_EXPORT QgsRasterBlock
244245

245246
/** \brief Convert data to different type.
246247
* @param destDataType dest data type
247-
* @return true on success
248+
* @return true on success
248249
*/
249250
bool convert( QgsRasterBlock::DataType destDataType );
250251

251-
QImage image() const;
252-
bool setImage( const QImage * image );
252+
QImage image() const;
253+
bool setImage( const QImage * image );
253254

254255
/** \brief Test if value is within the list of ranges
255256
* @param value value
@@ -285,11 +286,11 @@ class CORE_EXPORT QgsRasterBlock
285286

286287
private:
287288

288-
static QImage::Format imageFormat ( QgsRasterBlock::DataType theDataType );
289-
static DataType dataType ( QImage::Format theFormat );
289+
static QImage::Format imageFormat( QgsRasterBlock::DataType theDataType );
290+
static DataType dataType( QImage::Format theFormat );
290291

291292

292-
// Valid
293+
// Valid
293294
//bool isValid;
294295

295296
// Data type
@@ -298,11 +299,11 @@ class CORE_EXPORT QgsRasterBlock
298299
// Data type size in bytes, to make bits() fast
299300
int mTypeSize;
300301

301-
// Width
302+
// Width
302303
int mWidth;
303304

304-
// Height
305-
int mHeight;
305+
// Height
306+
int mHeight;
306307

307308
// No data value
308309
double mNoDataValue;

0 commit comments

Comments
 (0)