Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23602/src/libopenvrml/openvrml
Modified Files:
Tag: OpenVRML-0_16-BRANCH
browser.cpp
Log Message:
Set ios_base::badbit (instead of failbit) when stream construction does not produce a readable stream.
Index: browser.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/browser.cpp,v
retrieving revision 1.190.2.5
retrieving revision 1.190.2.6
diff -C2 -d -r1.190.2.5 -r1.190.2.6
*** browser.cpp 6 Dec 2006 01:21:39 -0000 1.190.2.5
--- browser.cpp 6 Dec 2006 01:52:49 -0000 1.190.2.6
***************
*** 5834,5838 ****
* if (!this->buf_.open(path.c_str(),
* ios_base::in | ios_base::binary)) {
! * this->setstate(ios_base::failbit);
* }
* }
--- 5834,5838 ----
* if (!this->buf_.open(path.c_str(),
* ios_base::in | ios_base::binary)) {
! * this->setstate(ios_base::badbit);
* }
* }
|