mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
wrong version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4109 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bded6fd063
commit
0b81a7631e
@ -1748,7 +1748,7 @@ istream & operator>>(istream & is, lyxstring & s)
|
||||
return is;
|
||||
}
|
||||
#else
|
||||
istream & operator>>(istream & is, lyxstring & str)
|
||||
istream & operator%(istream & is, string & str)
|
||||
{
|
||||
typedef istream istream_type;
|
||||
typedef int int_type;
|
||||
@ -1757,8 +1757,12 @@ istream & operator>>(istream & is, lyxstring & str)
|
||||
typedef string::size_type size_type;
|
||||
size_type extracted = 0;
|
||||
|
||||
// istream_type::sentry cerb(is, false);
|
||||
// if (cerb) {
|
||||
#if 0
|
||||
istream_type::sentry cerb(is, false);
|
||||
if (cerb) {
|
||||
#else
|
||||
if (is.ipfx0()) {
|
||||
#endif
|
||||
str.erase();
|
||||
std::streamsize w = is.width();
|
||||
size_type n;
|
||||
@ -1777,7 +1781,10 @@ istream & operator>>(istream & is, lyxstring & str)
|
||||
if (c == eof)
|
||||
is.setstate(std::ios::eofbit);
|
||||
is.width(0);
|
||||
// }
|
||||
}
|
||||
#if 1
|
||||
is.isfx();
|
||||
#endif
|
||||
if (!extracted)
|
||||
is.setstate(std::ios::failbit);
|
||||
return is;
|
||||
|
Loading…
Reference in New Issue
Block a user