Added missing break statements

[SVN r15078]
This commit is contained in:
John Maddock
2002-08-24 11:25:01 +00:00
parent bed785ad19
commit 38b55d0db8

View File

@ -132,11 +132,13 @@ parser_buf<charT, traits>::seekoff(off_type off, ::std::ios_base::seekdir way, :
return pos_type(off_type(-1)); return pos_type(off_type(-1));
else else
this->setg(g, g + off, g + size); this->setg(g, g + off, g + size);
break;
case ::std::ios_base::end: case ::std::ios_base::end:
if((off < 0) || (off > size)) if((off < 0) || (off > size))
return pos_type(off_type(-1)); return pos_type(off_type(-1));
else else
this->setg(g, g + size - off, g + size); this->setg(g, g + size - off, g + size);
break;
case ::std::ios_base::cur: case ::std::ios_base::cur:
{ {
std::ptrdiff_t newpos = pos + off; std::ptrdiff_t newpos = pos + off;
@ -144,6 +146,7 @@ parser_buf<charT, traits>::seekoff(off_type off, ::std::ios_base::seekdir way, :
return pos_type(off_type(-1)); return pos_type(off_type(-1));
else else
this->setg(g, g + newpos, g + size); this->setg(g, g + newpos, g + size);
break;
} }
default: ; default: ;
} }