mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 22:32:09 +02:00
Added missing break statements
[SVN r15078]
This commit is contained in:
@ -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: ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user