aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/BufferInputSource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/BufferInputSource.cc')
-rw-r--r--libqpdf/BufferInputSource.cc12
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");
}
}