Skip to content

Commit

Permalink
avoid double endian swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 9, 2016
1 parent e8be21a commit 89b49a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/geometry/qgswkbptr.cpp
Expand Up @@ -35,12 +35,10 @@ QgsWKBTypes::Type QgsConstWkbPtr::readHeader() const

char wkbEndian;
*this >> wkbEndian;
mEndianSwap = ( wkbEndian != QgsApplication::endian() );
mEndianSwap = wkbEndian != QgsApplication::endian();

int wkbType;
*this >> wkbType;
if ( mEndianSwap )
QgsApplication::endian_swap( wkbType );

return static_cast<QgsWKBTypes::Type>( wkbType );
}

0 comments on commit 89b49a1

Please sign in to comment.