Skip to content
Permalink
Browse files

Fix warning on debug builds

  • Loading branch information
nyalldawson committed Nov 12, 2020
1 parent c02b5cb commit 9fe4783a16dda7fc38ec5b0960cc9b20c8c2c7ba
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/providers/ept/qgseptdecoder.cpp
@@ -253,7 +253,9 @@ QgsPointCloudBlock *QgsEptDecoder::decompressLaz( const QString &filename,
if ( ! file.good() )
return nullptr;

#ifdef QGISDEBUG
auto start = common::tick();
#endif

laszip::io::reader::file f( file );

@@ -293,8 +295,12 @@ QgsPointCloudBlock *QgsEptDecoder::decompressLaz( const QString &filename,
outputOffset += requestedAttribute.size();
}
}

#ifdef QGISDEBUG
float t = common::since( start );
QgsDebugMsgLevel( QStringLiteral( "LAZ-PERF Read through the points in %1 seconds." ).arg( t ), 2 );
#endif

return new QgsPointCloudBlock(
count,
requestedAttributes,

0 comments on commit 9fe4783

Please sign in to comment.
You can’t perform that action at this time.