Skip to content
Permalink
Browse files

Avoid some unnecessary copies inside loop

  • Loading branch information
nyalldawson committed Nov 4, 2020
1 parent 6310397 commit 0d772691b0fb1724d559fb5d94a24328c2334571
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/providers/ept/qgseptdecoder.cpp
@@ -128,10 +128,11 @@ QgsPointCloudBlock *_decompressBinary( const QByteArray &dataUncompressed, const
data.resize( requestedPointRecordSize * count );
const char *s = dataUncompressed.data();

const QVector<QgsPointCloudAttribute> requestedAttributesVector = requestedAttributes.attributes();

for ( int i = 0; i < count; ++i )
{
size_t outputOffset = 0;
const QVector<QgsPointCloudAttribute> requestedAttributesVector = requestedAttributes.attributes();
for ( const QgsPointCloudAttribute &requestedAttribute : requestedAttributesVector )
{
int inputAttributeOffset;

0 comments on commit 0d77269

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