Commit 13ef50cd27f13687040da9342b398079567b7521

Authored by m-holger
1 parent a318b203

Avoid virtual method call in FileInputSource::read

Showing 1 changed file with 1 additions and 1 deletions
libqpdf/FileInputSource.cc
@@ -119,7 +119,7 @@ FileInputSource::rewind() @@ -119,7 +119,7 @@ FileInputSource::rewind()
119 size_t 119 size_t
120 FileInputSource::read(char* buffer, size_t length) 120 FileInputSource::read(char* buffer, size_t length)
121 { 121 {
122 - this->last_offset = this->tell(); 122 + this->last_offset = QUtil::tell(this->file);
123 size_t len = fread(buffer, 1, length, this->file); 123 size_t len = fread(buffer, 1, length, this->file);
124 if (len == 0) { 124 if (len == 0) {
125 if (ferror(this->file)) { 125 if (ferror(this->file)) {