]> git.lyx.org Git - features.git/commitdiff
* TextClass.cpp (read): do not use istrstream (which is deprecated),
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 18 Feb 2008 10:03:30 +0000 (10:03 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 18 Feb 2008 10:03:30 +0000 (10:03 +0000)
but istringstream instead.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23053 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextClass.cpp

index 78e3fcf7d6fc4f1b07ee54fbf46c9f467d7ace24..aad36787237920b567cc893aa9bfc317caf13208 100644 (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;