Uwe StĂśhr wrote: > commit a3f4f2d1e3c2c9cb6907859a72e9e7e0592fbdc8 > Author: Uwe StĂśhr <uwesto...@lyx.org> > Date: Sun Jun 24 06:38:33 2012 +0200 > > CJK support for tex2lyx > > - support as best as possible; setting a document language is however not > possible > - fixes bug #4377 > > diff --git a/src/tex2lyx/Parser.h b/src/tex2lyx/Parser.h > index c0c5685..3cf3dbd 100644 > --- a/src/tex2lyx/Parser.h > +++ b/src/tex2lyx/Parser.h > @@ -251,6 +251,8 @@ public: > void setCatCode(char c, CatCode cat); > /// > CatCode getCatCode(char c) const; > + /// latex name of the current encoding > + std::string encoding_latex_; > > private: > /// > @@ -265,8 +267,6 @@ private: > idocstringstream * iss_; > /// > idocstream & is_; > - /// latex name of the current encoding > - std::string encoding_latex_; > };
The custom is that we use get_var() methods when accessing private variables_ , not moving them to public part of the class. Pavel