]> git.lyx.org Git - lyx.git/blobdiff - src/TexStream.cpp
revert r37459 and add a note to the sources:
[lyx.git] / src / TexStream.cpp
index 808567955c403c54a3ad2d5826fe561ab99cd366..3ac285ee13b15d4f3c7c53ec0311cd7b99e49a17 100644 (file)
@@ -4,6 +4,9 @@
  * Licence details can be found in the file COPYING.
  *
  * Full author contact details are available in file CREDITS.
+ *
+ * Inspired by Dietmar Kuehl's prefix iostreams found on
+ * http://www.inf.uni-konstanz.de/~kuehl/
  */
 
 #include <config.h>
@@ -101,13 +104,13 @@ int TexStream::line() const
 
 int main(int argc, char *argv[])
 {
-       TexStream out(std::cout.rdbuf());
+       TexStream out(cout.rdbuf());
        char c;
-       while (std::cin) {
-               if (std::cin.get(c))
+       while (cin) {
+               if (cin.get(c))
                        out.put(c);
        }
-       std::cout << "line count: " << out.line() << std::endl;
+       cout << "line count: " << out.line() << endl;
 
        return 0;
 }