aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/JSON.hh13
-rw-r--r--include/qpdf/QPDF.hh2
2 files changed, 8 insertions, 7 deletions
diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh
index e6857ca6..64a593d0 100644
--- a/include/qpdf/JSON.hh
+++ b/include/qpdf/JSON.hh
@@ -37,6 +37,7 @@
#include <qpdf/DLL.h>
#include <qpdf/PointerHolder.hh>
+#include <qpdf/Types.h>
#include <functional>
#include <list>
@@ -299,13 +300,13 @@ class JSON
// non-inclusive end offsets of an object relative to its input
// string. Otherwise, both values are 0.
QPDF_DLL
- void setStart(size_t);
+ void setStart(qpdf_offset_t);
QPDF_DLL
- void setEnd(size_t);
+ void setEnd(qpdf_offset_t);
QPDF_DLL
- size_t getStart() const;
+ qpdf_offset_t getStart() const;
QPDF_DLL
- size_t getEnd() const;
+ qpdf_offset_t getEnd() const;
private:
static std::string encode_string(std::string const& utf8);
@@ -391,8 +392,8 @@ class JSON
std::shared_ptr<JSON_value> value;
// start and end are only populated for objects created by parse
- size_t start;
- size_t end;
+ qpdf_offset_t start;
+ qpdf_offset_t end;
};
std::shared_ptr<Members> m;
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 07a384d7..8ddbf98b 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -1046,7 +1046,7 @@ class QPDF
void nestedState(std::string const& key, JSON const& value, state_e);
void setObjectDescription(QPDFObjectHandle& oh, JSON const& value);
QPDFObjectHandle makeObject(JSON const& value);
- void error(size_t offset, std::string const& message);
+ void error(qpdf_offset_t offset, std::string const& message);
QPDFObjectHandle
reserveObject(int obj, int gen);
void replaceObject(