Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23635/src/libopenvrml/openvrml
Modified Files:
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.197
retrieving revision 1.198
diff -C2 -d -r1.197 -r1.198
*** browser.cpp 6 Dec 2006 01:22:04 -0000 1.197
--- browser.cpp 6 Dec 2006 01:52:58 -0000 1.198
***************
*** 4666,4670 ****
* if (!this->buf_.open(path.c_str(),
* ios_base::in | ios_base::binary)) {
! * this->setstate(ios_base::failbit);
* }
* }
--- 4666,4670 ----
* if (!this->buf_.open(path.c_str(),
* ios_base::in | ios_base::binary)) {
! * this->setstate(ios_base::badbit);
* }
* }
|