From 85d784952f8a7c4d8c9e614663ebc5b1eb747384 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 21 May 2023 14:42:34 +0100 Subject: Globally replace 'this->m->' with 'm->' Using search and replace. --- libqpdf/Pl_DCT.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libqpdf/Pl_DCT.cc') diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc index c9a43c06..a910d1b0 100644 --- a/libqpdf/Pl_DCT.cc +++ b/libqpdf/Pl_DCT.cc @@ -84,18 +84,18 @@ Pl_DCT::~Pl_DCT() void Pl_DCT::write(unsigned char const* data, size_t len) { - this->m->buf.write(data, len); + m->buf.write(data, len); } void Pl_DCT::finish() { - this->m->buf.finish(); + m->buf.finish(); // Using a std::shared_ptr here and passing it into compress // and decompress causes a memory leak with setjmp/longjmp. Just // use a pointer and delete it. - Buffer* b = this->m->buf.getBuffer(); + Buffer* b = m->buf.getBuffer(); if (b->getSize() == 0) { // Special case: empty data will never succeed and probably // means we're calling finish a second time from an exception @@ -118,7 +118,7 @@ Pl_DCT::finish() // for exception handling. if (setjmp(jerr.jmpbuf) == 0) { try { - if (this->m->action == a_compress) { + if (m->action == a_compress) { compress(reinterpret_cast(&cinfo_compress), b); } else { decompress(reinterpret_cast(&cinfo_decompress), b); @@ -135,10 +135,10 @@ Pl_DCT::finish() } delete b; - if (this->m->action == a_compress) { + if (m->action == a_compress) { jpeg_destroy_compress(&cinfo_compress); } - if (this->m->action == a_decompress) { + if (m->action == a_decompress) { jpeg_destroy_decompress(&cinfo_decompress); } if (error) { @@ -279,13 +279,13 @@ Pl_DCT::compress(void* cinfo_p, Buffer* b) unsigned char* outbuffer = outbuffer_ph.get(); jpeg_pipeline_dest(cinfo, outbuffer, BUF_SIZE, this->getNext()); - cinfo->image_width = this->m->image_width; - cinfo->image_height = this->m->image_height; - cinfo->input_components = this->m->components; - cinfo->in_color_space = this->m->color_space; + cinfo->image_width = m->image_width; + cinfo->image_height = m->image_height; + cinfo->input_components = m->components; + cinfo->in_color_space = m->color_space; jpeg_set_defaults(cinfo); - if (this->m->config_callback) { - this->m->config_callback->apply(cinfo); + if (m->config_callback) { + m->config_callback->apply(cinfo); } jpeg_start_compress(cinfo, TRUE); -- cgit v1.2.3-54-g00ecf