Skip to content

Commit 07037ec

Browse files
committed
Fix some warnings
1 parent 948a312 commit 07037ec

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

src/app/qgsprojectproperties.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,6 @@ void QgsProjectProperties::apply()
974974
degreeFormat = QStringLiteral( "MU" );
975975
break;
976976
case DecimalDegrees:
977-
default:
978977
degreeFormat = QStringLiteral( "D" );
979978
break;
980979
}

src/core/expression/qgsexpressionnode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CORE_EXPORT QgsExpressionNode SIP_ABSTRACT
6666
SIP_END
6767
#endif
6868

69-
Q_DECLARE_TR_FUNCTIONS( QgsExpressionNode );
69+
Q_DECLARE_TR_FUNCTIONS( QgsExpressionNode )
7070

7171
public:
7272

src/core/raster/qgsrasterrenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int QgsRasterRenderer::bandCount() const
4949

5050
Qgis::DataType QgsRasterRenderer::dataType( int bandNo ) const
5151
{
52-
QgsDebugMsgLevel( "Entered", 4 );
52+
QgsDebugMsgLevel( QStringLiteral( "Entered" ), 4 );
5353

5454
if ( mOn ) return Qgis::ARGB32_Premultiplied;
5555

src/core/raster/qgsrasterrenderer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class QgsRasterTransparency;
3737
class CORE_EXPORT QgsRasterRenderer : public QgsRasterInterface
3838
{
3939

40-
Q_DECLARE_TR_FUNCTIONS( QgsRasterRenderer );
40+
Q_DECLARE_TR_FUNCTIONS( QgsRasterRenderer )
4141

4242
public:
4343

src/server/services/wmts/qgswmtsutils.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace QgsWmts
3939

4040
QgsCoordinateReferenceSystem wgs84 = QgsCoordinateReferenceSystem::fromOgcWmsCrs( GEO_EPSG_CRS_AUTHID );
4141

42-
int DOTS_PER_INCH = 72;
4342
double METERS_PER_INCH = 0.02540005080010160020;
4443
QMap< QgsUnitTypes::DistanceUnit, double> INCHES_PER_UNIT = populateInchesPerUnit();
4544
int tileWidth = 256;

0 commit comments

Comments
 (0)