From: Braden M. <br...@us...> - 2006-12-06 01:52:51
|
Update of /cvsroot/openvrml/openvrml/examples In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23602/examples Modified Files: Tag: OpenVRML-0_16-BRANCH sdl_viewer.cpp Log Message: Set ios_base::badbit (instead of failbit) when stream construction does not produce a readable stream. Index: sdl_viewer.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/examples/sdl_viewer.cpp,v retrieving revision 1.10.2.3 retrieving revision 1.10.2.4 diff -C2 -d -r1.10.2.3 -r1.10.2.4 *** sdl_viewer.cpp 6 Dec 2006 01:21:39 -0000 1.10.2.3 --- sdl_viewer.cpp 6 Dec 2006 01:52:49 -0000 1.10.2.4 *************** *** 151,155 **** if (!this->buf_.open(path.c_str(), ios_base::in | ios_base::binary)) { ! this->setstate(ios_base::failbit); } } --- 151,155 ---- if (!this->buf_.open(path.c_str(), ios_base::in | ios_base::binary)) { ! this->setstate(ios_base::badbit); } } |