Skip to content
Permalink
Browse files

avoid double endian swapping

  • Loading branch information
jef-n committed Feb 1, 2016
1 parent e8be21a commit 89b49a1a63ad86965ab7f15f7cde0252bdd5273a
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/geometry/qgswkbptr.cpp
@@ -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.
You can’t perform that action at this time.