* TextClass.cpp (read): do not use istrstream (which is deprecated),

but istringstream instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23053 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-02-18 10:03:30 +00:00
parent 6f5e86e065
commit c075a285a0

View File

@ -35,7 +35,6 @@
#include "support/os.h"
#include <sstream>
#include <strstream>
using namespace std;
using namespace lyx::support;
@ -236,7 +235,7 @@ bool TextClass::read(FileName const & filename, ReadType rt)
"AlignPossible Left, Right, Center\n"
"LabelType No_Label\n"
"End";
istrstream ss(s);
istringstream ss(s);
Lexer lex(textClassTags, sizeof(textClassTags) / sizeof(textClassTags[0]));
lex.setStream(ss);
Layout lay;