]> git.lyx.org Git - features.git/commitdiff
Remove bogus ifdocstream constructor argument, which _may_ be the cause of
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 20 Apr 2009 15:40:01 +0000 (15:40 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 20 Apr 2009 15:40:01 +0000 (15:40 +0000)
tex2lyx woes under windows. It may also help chktex under windows
(does it works currently?)

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

src/support/docstream.cpp
src/support/docstream.h

index ed00fffa0e125f197cb007538b3f1d2188861168..4e3d28fb15f009feb0f3bf66fdc90550079b4828 100644 (file)
@@ -320,9 +320,9 @@ const char * iconv_codecvt_facet_exception::what() const throw()
 }
 
 
-ifdocstream::ifdocstream(string const & encoding) : base()
+ifdocstream::ifdocstream() : base()
 {
-       setEncoding(*this, encoding, in);
+       setEncoding(*this, "UTF-8", in);
 }
 
 
index c15b27c2886cc53992c8a0543b8805b5cf8153c7..056205df1972a6170214df2e85ab8dda28dede60 100644 (file)
@@ -45,7 +45,7 @@ typedef std::basic_ostream<char_type> odocstream;
 class ifdocstream : public std::basic_ifstream<char_type> {
        typedef std::basic_ifstream<char_type> base;
 public:
-       ifdocstream(std::string const & encoding = "UTF-8");
+       ifdocstream();
        explicit ifdocstream(const char* s,
                std::ios_base::openmode mode = std::ios_base::in,
                std::string const & encoding = "UTF-8");