Skip to content

Commit 8fac4d8

Browse files
committedJul 21, 2018
Fix some clazy warnings
1 parent ce1291a commit 8fac4d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/core/qgspointlocator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,13 @@ class QgsPointLocator_DumpTree : public SpatialIndex::IQueryStrategy
587587
if ( !n )
588588
return;
589589

590-
QgsDebugMsg( QString( "NODE: %1" ).arg( n->getIdentifier() ) );
590+
QgsDebugMsgLevel( QStringLiteral( "NODE: %1" ).arg( n->getIdentifier() ), 4 );
591591
if ( n->getLevel() > 0 )
592592
{
593593
// inner nodes
594594
for ( uint32_t cChild = 0; cChild < n->getChildrenCount(); cChild++ )
595595
{
596-
QgsDebugMsg( QString( "- CH: %1" ).arg( n->getChildIdentifier( cChild ) ) );
596+
QgsDebugMsgLevel( QStringLiteral( "- CH: %1" ).arg( n->getChildIdentifier( cChild ) ), 4 );
597597
ids.push( n->getChildIdentifier( cChild ) );
598598
}
599599
}
@@ -602,7 +602,7 @@ class QgsPointLocator_DumpTree : public SpatialIndex::IQueryStrategy
602602
// leaves
603603
for ( uint32_t cChild = 0; cChild < n->getChildrenCount(); cChild++ )
604604
{
605-
QgsDebugMsg( QString( "- L: %1" ).arg( n->getChildIdentifier( cChild ) ) );
605+
QgsDebugMsgLevel( QStringLiteral( "- L: %1" ).arg( n->getChildIdentifier( cChild ) ), 4 );
606606
}
607607
}
608608

@@ -767,7 +767,7 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
767767
{
768768
Q_UNUSED( e );
769769
// See https://issues.qgis.org/issues/12634
770-
QgsDebugMsg( QString( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
770+
QgsDebugMsg( QStringLiteral( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
771771
continue;
772772
}
773773
}
@@ -877,7 +877,7 @@ void QgsPointLocator::onFeatureAdded( QgsFeatureId fid )
877877
{
878878
Q_UNUSED( e );
879879
// See https://issues.qgis.org/issues/12634
880-
QgsDebugMsg( QString( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
880+
QgsDebugMsg( QStringLiteral( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
881881
return;
882882
}
883883
}

0 commit comments

Comments
 (0)
Please sign in to comment.