aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/SparseOHArray.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-08 15:18:08 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-08 17:51:15 +0100
commitcb769c62e55599e9f980001830bc61d9fcaa64a9 (patch)
tree0bf980c385a61cbc8720cf990762ffc1200f9d6a /libqpdf/SparseOHArray.cc
parent716381f65a2b2dc72f8da2426ba71aeab02c507f (diff)
downloadqpdf-cb769c62e55599e9f980001830bc61d9fcaa64a9.tar.zst
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.
Diffstat (limited to 'libqpdf/SparseOHArray.cc')
-rw-r--r--libqpdf/SparseOHArray.cc14
1 files changed, 7 insertions, 7 deletions
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)