1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Made tell() const.

committer: mfx <mfx> 979831609 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2001-01-18 15:26:49 +00:00
parent 94f7d49522
commit ea4fcebf33
2 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ void FileBase::seek(off_t off, int whence)
} }
off_t FileBase::tell() off_t FileBase::tell() const
{ {
if (!isOpen()) if (!isOpen())
throwIOException("bad tell"); throwIOException("bad tell");
@ -253,7 +253,7 @@ void InputFile::seek(off_t off, int whence)
} }
off_t InputFile::tell() off_t InputFile::tell() const
{ {
return super::tell(); return super::tell();
} }

View File

@ -60,7 +60,7 @@ protected:
virtual int readx(void *buf, int len); virtual int readx(void *buf, int len);
virtual void write(const void *buf, int len); virtual void write(const void *buf, int len);
virtual void seek(off_t off, int whence); virtual void seek(off_t off, int whence);
virtual off_t tell(); virtual off_t tell() const;
int _fd; int _fd;
int _flags; int _flags;
@ -93,7 +93,7 @@ public:
virtual int readx(void * buf, int len); virtual int readx(void * buf, int len);
virtual void seek(off_t off, int whence); virtual void seek(off_t off, int whence);
virtual off_t tell(); virtual off_t tell() const;
}; };