mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-24 15:48:29 +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
|
size_t
|
||||||
FileInputSource::read(char* buffer, size_t length)
|
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);
|
size_t len = fread(buffer, 1, length, this->file);
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
if (ferror(this->file)) {
|
if (ferror(this->file)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user