diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
commit | 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch) | |
tree | a707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/BufferInputSource.cc | |
parent | 6b077332d38c093de2618d5e1481b42222106065 (diff) | |
download | qpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst |
Rerun clang-format
Diffstat (limited to 'libqpdf/BufferInputSource.cc')
-rw-r--r-- | libqpdf/BufferInputSource.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libqpdf/BufferInputSource.cc b/libqpdf/BufferInputSource.cc index 4fff642a..4246016d 100644 --- a/libqpdf/BufferInputSource.cc +++ b/libqpdf/BufferInputSource.cc @@ -5,8 +5,7 @@ #include <cstring> #include <sstream> -BufferInputSource::BufferInputSource( - std::string const& description, Buffer* buf, bool own_memory) : +BufferInputSource::BufferInputSource(std::string const& description, Buffer* buf, bool own_memory) : own_memory(own_memory), description(description), buf(buf), @@ -15,8 +14,7 @@ BufferInputSource::BufferInputSource( { } -BufferInputSource::BufferInputSource( - std::string const& description, std::string const& contents) : +BufferInputSource::BufferInputSource(std::string const& description, std::string const& contents) : own_memory(true), description(description), buf(new Buffer(contents.length())), @@ -100,14 +98,12 @@ BufferInputSource::seek(qpdf_offset_t offset, int whence) break; default: - throw std::logic_error( - "INTERNAL ERROR: invalid argument to BufferInputSource::seek"); + throw std::logic_error("INTERNAL ERROR: invalid argument to BufferInputSource::seek"); break; } if (this->cur_offset < 0) { - throw std::runtime_error( - this->description + ": seek before beginning of buffer"); + throw std::runtime_error(this->description + ": seek before beginning of buffer"); } } |