Skip to content

Commit 89b49a1

Browse files
committedFeb 9, 2016
avoid double endian swapping
1 parent e8be21a commit 89b49a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/core/geometry/qgswkbptr.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ QgsWKBTypes::Type QgsConstWkbPtr::readHeader() const
3535

3636
char wkbEndian;
3737
*this >> wkbEndian;
38-
mEndianSwap = ( wkbEndian != QgsApplication::endian() );
38+
mEndianSwap = wkbEndian != QgsApplication::endian();
3939

4040
int wkbType;
4141
*this >> wkbType;
42-
if ( mEndianSwap )
43-
QgsApplication::endian_swap( wkbType );
4442

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

0 commit comments

Comments
 (0)
Please sign in to comment.