]> git.lyx.org Git - lyx.git/blobdiff - src/support/docstream.h
Remove unused macros USE_INCLUDED_STRING and STD_STRING_IS_GOOD
[lyx.git] / src / support / docstream.h
index c3db04c58a3a2d2083c55160f6fccc01ee3bdaad..c3a82260144ea665fff864853037e582c08e20c3 100644 (file)
@@ -57,11 +57,13 @@ public:
 class odocfstream : public std::basic_ofstream<char_type> {
        typedef std::basic_ofstream<char_type> base;
 public:
-       odocfstream(std::string const & encoding = "UTF-8");
+       odocfstream();
        explicit odocfstream(const char* s,
                std::ios_base::openmode mode = std::ios_base::out|std::ios_base::trunc,
                std::string const & encoding = "UTF-8");
        ~odocfstream() {}
+       ///
+       void reset(std::string const & encoding);
 };
 
 /// UCS4 input stringstream
@@ -70,13 +72,6 @@ typedef std::basic_istringstream<char_type> idocstringstream;
 /// UCS4 output stringstream
 typedef std::basic_ostringstream<char_type> odocstringstream;
 
-inline
-odocstream & operator<<(odocstream & os, char c)
-{
-    os.put(c);
-    return os;
-}
-
 /// Helper struct for changing stream encoding
 struct SetEnc {
        SetEnc(std::string const & e) : encoding(e) {}