Removed redundent byte swap on _version

This commit is contained in:
Robert Osfield 2004-02-16 15:27:45 +00:00
parent fc3d4aa5f0
commit 214f1458d9

View File

@ -80,12 +80,11 @@ DataInputStream::DataInputStream(std::istream* istream)
if ( endianType != OPPOSITE_ENDIAN_TYPE ) {
throw Exception("DataInputStream::DataInputStream(): This file has an unreadable endian type.") ;
}
if (_verboseOutput) std::cout<<"DataInputStream::DataInputStream: Reading a byteswapped file" << std::endl ;
if (true/*_verboseOutput*/) std::cout<<"DataInputStream::DataInputStream: Reading a byteswapped file" << std::endl ;
_byteswap = 1 ;
}
_version = readUInt();
if (_byteswap) osg::swapBytes4((char *)&_version) ;
// Are we trying to open a binary .ive file which version are newer than this library.
if(_version>VERSION){