aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/FileInputSource.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-08-25 16:08:03 +0200
committerm-holger <m-holger@kubitscheck.org>2022-08-25 16:08:03 +0200
commit13ef50cd27f13687040da9342b398079567b7521 (patch)
tree11c36249b68409d0d55948c9c70ab430ac3af8db /libqpdf/FileInputSource.cc
parenta318b203bea956dbe17c30f87c0a8a5293f027f2 (diff)
downloadqpdf-13ef50cd27f13687040da9342b398079567b7521.tar.zst
Avoid virtual method call in FileInputSource::read
Diffstat (limited to 'libqpdf/FileInputSource.cc')
-rw-r--r--libqpdf/FileInputSource.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc
index 2c610801..2b1ee1ab 100644
--- a/libqpdf/FileInputSource.cc
+++ b/libqpdf/FileInputSource.cc
@@ -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)) {