Update of /cvsroot/openvrml/openvrml/examples
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23635/examples
Modified Files:
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.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** sdl_viewer.cpp 6 Dec 2006 01:22:04 -0000 1.14
--- sdl_viewer.cpp 6 Dec 2006 01:52:58 -0000 1.15
***************
*** 145,149 ****
if (!this->buf_.open(path.c_str(),
ios_base::in | ios_base::binary)) {
! this->setstate(ios_base::failbit);
}
}
--- 145,149 ----
if (!this->buf_.open(path.c_str(),
ios_base::in | ios_base::binary)) {
! this->setstate(ios_base::badbit);
}
}
|