From 12f1eb15ca3fed6310402847559a7c99d3c77847 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 2 Apr 2022 17:14:10 -0400 Subject: Programmatically apply new formatting to code Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done --- libqpdf/ClosedFileInputSource.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'libqpdf/ClosedFileInputSource.cc') diff --git a/libqpdf/ClosedFileInputSource.cc b/libqpdf/ClosedFileInputSource.cc index 5625002f..a4c52c92 100644 --- a/libqpdf/ClosedFileInputSource.cc +++ b/libqpdf/ClosedFileInputSource.cc @@ -25,8 +25,7 @@ ClosedFileInputSource::~ClosedFileInputSource() void ClosedFileInputSource::before() { - if (0 == this->m->fis.get()) - { + if (0 == this->m->fis.get()) { this->m->fis = make_pointer_holder(); this->m->fis->setFilename(this->m->filename.c_str()); this->m->fis->seek(this->m->offset, SEEK_SET); @@ -39,8 +38,7 @@ ClosedFileInputSource::after() { this->last_offset = this->m->fis->getLastOffset(); this->m->offset = this->m->fis->tell(); - if (this->m->stay_open) - { + if (this->m->stay_open) { return; } this->m->fis = 0; @@ -82,8 +80,7 @@ void ClosedFileInputSource::rewind() { this->m->offset = 0; - if (this->m->fis.get()) - { + if (this->m->fis.get()) { this->m->fis->rewind(); } } @@ -110,8 +107,7 @@ void ClosedFileInputSource::stayOpen(bool val) { this->m->stay_open = val; - if ((! val) && this->m->fis.get()) - { + if ((!val) && this->m->fis.get()) { after(); } } -- cgit v1.2.3-54-g00ecf