From cb769c62e55599e9f980001830bc61d9fcaa64a9 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 8 Feb 2022 09:18:08 -0500 Subject: WHITESPACE ONLY -- expand tabs in source code This comment expands all tabs using an 8-character tab-width. You should ignore this commit when using git blame or use git blame -w. In the early days, I used to use tabs where possible for indentation, since emacs did this automatically. In recent years, I have switched to only using spaces, which means qpdf source code has been a mixture of spaces and tabs. I have avoided cleaning this up because of not wanting gratuitous whitespaces change to cloud the output of git blame, but I changed my mind after discussing with users who view qpdf source code in editors/IDEs that have other tab widths by default and in light of the fact that I am planning to start applying automatic code formatting soon. --- libqpdf/SparseOHArray.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libqpdf/SparseOHArray.cc') diff --git a/libqpdf/SparseOHArray.cc b/libqpdf/SparseOHArray.cc index 38822e6d..1bcf8309 100644 --- a/libqpdf/SparseOHArray.cc +++ b/libqpdf/SparseOHArray.cc @@ -28,8 +28,8 @@ SparseOHArray::at(size_t idx) const { if (idx >= this->n_elements) { - throw std::logic_error( - "INTERNAL ERROR: bounds error accessing SparseOHArray element"); + throw std::logic_error( + "INTERNAL ERROR: bounds error accessing SparseOHArray element"); } auto const& iter = this->elements.find(idx); if (iter == this->elements.end()) @@ -47,8 +47,8 @@ SparseOHArray::remove_last() { if (this->n_elements == 0) { - throw std::logic_error( - "INTERNAL ERROR: attempt to remove" + throw std::logic_error( + "INTERNAL ERROR: attempt to remove" " last item from empty SparseOHArray"); } --this->n_elements; @@ -60,7 +60,7 @@ SparseOHArray::releaseResolved() { for (auto& iter: this->elements) { - QPDFObjectHandle::ReleaseResolver::releaseResolved(iter.second); + QPDFObjectHandle::ReleaseResolver::releaseResolved(iter.second); } } @@ -69,7 +69,7 @@ SparseOHArray::setAt(size_t idx, QPDFObjectHandle oh) { if (idx >= this->n_elements) { - throw std::logic_error("bounds error setting item in SparseOHArray"); + throw std::logic_error("bounds error setting item in SparseOHArray"); } if (oh.isDirectNull()) { @@ -86,7 +86,7 @@ SparseOHArray::erase(size_t idx) { if (idx >= this->n_elements) { - throw std::logic_error("bounds error erasing item from SparseOHArray"); + throw std::logic_error("bounds error erasing item from SparseOHArray"); } decltype(this->elements) dest; for (auto const& iter: this->elements) -- cgit v1.2.3-54-g00ecf