aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFExc.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-22 01:32:21 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-22 03:23:24 +0200
commit81e8752362eeab80f156eb74d1b523eba20a0366 (patch)
tree96ec527e8aaf243767458058598740c9fbffc2d4 /libqpdf/QPDFExc.cc
parentc833295a3948e914fa23042896f19f35ddd8d927 (diff)
downloadqpdf-81e8752362eeab80f156eb74d1b523eba20a0366.tar.zst
Use qpdf_offset_t in place of off_t in public APIs.
off_t is used internally only when needed to talk to standard libraries. This requires that the "long long" type be supported by the compiler.
Diffstat (limited to 'libqpdf/QPDFExc.cc')
-rw-r--r--libqpdf/QPDFExc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDFExc.cc b/libqpdf/QPDFExc.cc
index 1fc9d724..8bbfb0b4 100644
--- a/libqpdf/QPDFExc.cc
+++ b/libqpdf/QPDFExc.cc
@@ -4,7 +4,7 @@
QPDFExc::QPDFExc(qpdf_error_code_e error_code,
std::string const& filename,
std::string const& object,
- off_t offset,
+ qpdf_offset_t offset,
std::string const& message) :
std::runtime_error(createWhat(filename, object, offset, message)),
error_code(error_code),
@@ -22,7 +22,7 @@ QPDFExc::~QPDFExc() throw ()
std::string
QPDFExc::createWhat(std::string const& filename,
std::string const& object,
- off_t offset,
+ qpdf_offset_t offset,
std::string const& message)
{
std::string result;
@@ -73,7 +73,7 @@ QPDFExc::getObject() const
return this->object;
}
-off_t
+qpdf_offset_t
QPDFExc::getFilePosition() const
{
return this->offset;