Fix some warnings

This commit is contained in:
Nyall Dawson 2018-08-31 10:44:51 +10:00
parent 948a312acb
commit 07037ec44a
5 changed files with 3 additions and 5 deletions

View File

@ -974,7 +974,6 @@ void QgsProjectProperties::apply()
degreeFormat = QStringLiteral( "MU" );
break;
case DecimalDegrees:
default:
degreeFormat = QStringLiteral( "D" );
break;
}

View File

@ -66,7 +66,7 @@ class CORE_EXPORT QgsExpressionNode SIP_ABSTRACT
SIP_END
#endif
Q_DECLARE_TR_FUNCTIONS( QgsExpressionNode );
Q_DECLARE_TR_FUNCTIONS( QgsExpressionNode )
public:

View File

@ -49,7 +49,7 @@ int QgsRasterRenderer::bandCount() const
Qgis::DataType QgsRasterRenderer::dataType( int bandNo ) const
{
QgsDebugMsgLevel( "Entered", 4 );
QgsDebugMsgLevel( QStringLiteral( "Entered" ), 4 );
if ( mOn ) return Qgis::ARGB32_Premultiplied;

View File

@ -37,7 +37,7 @@ class QgsRasterTransparency;
class CORE_EXPORT QgsRasterRenderer : public QgsRasterInterface
{
Q_DECLARE_TR_FUNCTIONS( QgsRasterRenderer );
Q_DECLARE_TR_FUNCTIONS( QgsRasterRenderer )
public:

View File

@ -39,7 +39,6 @@ namespace QgsWmts
QgsCoordinateReferenceSystem wgs84 = QgsCoordinateReferenceSystem::fromOgcWmsCrs( GEO_EPSG_CRS_AUTHID );
int DOTS_PER_INCH = 72;
double METERS_PER_INCH = 0.02540005080010160020;
QMap< QgsUnitTypes::DistanceUnit, double> INCHES_PER_UNIT = populateInchesPerUnit();
int tileWidth = 256;