@@ -224,7 +224,7 @@ bool QgsMapToolIdentify::identifyVectorLayer( QList<QgsMapToolIdentify::Identify
224
224
225
225
if ( !layer->isInScaleRange ( mCanvas ->mapSettings ().scale () ) )
226
226
{
227
- QgsDebugMsg ( " Out of scale limits" );
227
+ QgsDebugMsg ( QStringLiteral ( " Out of scale limits" ) );
228
228
return false ;
229
229
}
230
230
@@ -620,8 +620,8 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
620
620
// are similar to source width and height used to reproject layer for drawing.
621
621
// TODO: may be very dangerous, because it may result in different resolutions
622
622
// in source CRS, and WMS server (QGIS server) calcs wrong coor using average resolution.
623
- int width = std::round ( viewExtent.width () / mapUnitsPerPixel );
624
- int height = std::round ( viewExtent.height () / mapUnitsPerPixel );
623
+ int width = static_cast < int >( std::round ( viewExtent.width () / mapUnitsPerPixel ) );
624
+ int height = static_cast < int >( std::round ( viewExtent.height () / mapUnitsPerPixel ) );
625
625
626
626
QgsDebugMsg ( QStringLiteral ( " viewExtent.width = %1 viewExtent.height = %2" ).arg ( viewExtent.width () ).arg ( viewExtent.height () ) );
627
627
QgsDebugMsg ( QStringLiteral ( " width = %1 height = %2" ).arg ( width ).arg ( height ) );
@@ -695,7 +695,7 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
695
695
for ( const QgsFeatureStore &featureStore : featureStoreList )
696
696
{
697
697
const QgsFeatureList storeFeatures = featureStore.features ();
698
- for ( QgsFeature feature : storeFeatures )
698
+ for ( const QgsFeature & feature : storeFeatures )
699
699
{
700
700
attributes.clear ();
701
701
// WMS sublayer and feature type, a sublayer may contain multiple feature types.
0 commit comments