whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19584 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2007-08-15 06:53:25 +00:00
parent 92b707bebc
commit da48080cc7
2 changed files with 13 additions and 13 deletions

View File

@ -26,16 +26,16 @@ namespace lyx {
class TexStreamBuffer : public TexStreamBase
{
public:
TexStreamBuffer(TexStreamBase * sbuf, TexRow * texrow);
TexStreamBuffer(TexStreamBase * sbuf, TexRow * texrow);
int line() const { return line_; }
int column() const { return column_; }
protected:
int overflow(int);
int sync();
int overflow(int);
int sync();
private:
TexStreamBase * sbuf_;
TexStreamBase * sbuf_;
TexRow * texrow_;
int column_;
int line_;
@ -45,8 +45,8 @@ private:
TexStreamBuffer::TexStreamBuffer(TexStreamBase *sb, TexRow * texrow)
: sbuf_(sb), texrow_(texrow), line_(0)
{
setp(0, 0);
setg(0, 0, 0);
setp(0, 0);
setg(0, 0, 0);
}
int TexStreamBuffer::overflow(int c)
@ -63,8 +63,8 @@ int TexStreamBuffer::overflow(int c)
int TexStreamBuffer::sync()
{
sbuf_->pubsync();
return 0;
sbuf_->pubsync();
return 0;
}
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
}
std::cout << "line count: " << out.line() << std::endl;
return 0;
return 0;
}
#endif

View File

@ -1,5 +1,5 @@
#ifndef LATEXSTREAM_H
#define LATEXSTREAM_H
#ifndef TEXSTREAM_H
#define TEXSTREAM_H
#include "support/docstring.h"
@ -18,8 +18,8 @@ typedef std::basic_streambuf<char_type> TexStreamBase;
class TexStream : public std::basic_ostream<char_type>
{
public:
TexStream(TexStreamBase * sbuf, TexRow * texrow);
~TexStream();
TexStream(TexStreamBase * sbuf, TexRow * texrow);
~TexStream();
int line() const;
private: