mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Avoid virtual method call in FileInputSource::read
This commit is contained in:
parent
a318b203be
commit
13ef50cd27
@ -119,7 +119,7 @@ FileInputSource::rewind()
|
||||
size_t
|
||||
FileInputSource::read(char* buffer, size_t length)
|
||||
{
|
||||
this->last_offset = this->tell();
|
||||
this->last_offset = QUtil::tell(this->file);
|
||||
size_t len = fread(buffer, 1, length, this->file);
|
||||
if (len == 0) {
|
||||
if (ferror(this->file)) {
|
||||
|
Loading…
Reference in New Issue
Block a user