Skip to content

Commit afd45ee

Browse files
committedAug 12, 2017
QgsDebugMsg -> QgsDebugMsgLevel + typo
1 parent 97d168e commit afd45ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/providers/gdal/qgsgdaldataitems.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ QgsGdalLayerItem::QgsGdalLayerItem( QgsDataItem *parent,
5151
}
5252
}
5353

54+
5455
bool QgsGdalLayerItem::setCrs( const QgsCoordinateReferenceSystem &crs )
5556
{
5657
GDALDatasetH hDS = GDALOpen( mPath.toUtf8().constData(), GA_Update );
@@ -71,14 +72,14 @@ bool QgsGdalLayerItem::setCrs( const QgsCoordinateReferenceSystem &crs )
7172

7273
QVector<QgsDataItem *> QgsGdalLayerItem::createChildren()
7374
{
74-
QgsDebugMsg( "Entered, path=" + path() );
75+
QgsDebugMsgLevel( "Entered, path=" + path(), 3 );
7576
QVector<QgsDataItem *> children;
7677

7778
// get children from sublayers
7879
if ( !mSublayers.isEmpty() )
7980
{
8081
QgsDataItem *childItem = nullptr;
81-
QgsDebugMsg( QString( "got %1 sublayers" ).arg( mSublayers.count() ) );
82+
QgsDebugMsgLevel( QString( "got %1 sublayers" ).arg( mSublayers.count() ), 3 );
8283
for ( int i = 0; i < mSublayers.count(); i++ )
8384
{
8485
QString name = mSublayers[i];
@@ -172,7 +173,7 @@ QGISEXTERN QgsDataItem *dataItem( QString path, QgsDataItem *parentItem )
172173
info.setFile( path );
173174
QString name = info.fileName();
174175

175-
QgsDebugMsgLevel( "thePath= " + path + " tmpPath= " + tmpPath + " name= " + name
176+
QgsDebugMsgLevel( "path= " + path + " tmpPath= " + tmpPath + " name= " + name
176177
+ " suffix= " + suffix + " vsiPrefix= " + vsiPrefix, 3 );
177178

178179
// allow only normal files or VSIFILE items to continue

0 commit comments

Comments
 (0)
Please sign in to comment.