X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTexStream.cpp;h=3ac285ee13b15d4f3c7c53ec0311cd7b99e49a17;hb=13739f37d5208e87e97c44ef2eeba35807ddb9c5;hp=2f46270407146663061b43d98d6eea93bf114bb3;hpb=b1401eb7913e9c1d994036061910cc0c2e20d45e;p=lyx.git diff --git a/src/TexStream.cpp b/src/TexStream.cpp index 2f46270407..3ac285ee13 100644 --- a/src/TexStream.cpp +++ b/src/TexStream.cpp @@ -104,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; }