diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-07-06 21:27:39 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-07-16 20:32:48 +0200 |
commit | 4c6640cb455bc9e8a2e2150be2e48455be341325 (patch) | |
tree | 74b6af7cbd27b9f168d95c0fe3bb12a70ea74b3b /libqpdf | |
parent | a603c1e395d039e71ca8e4c70bc43f2f9d2d604b (diff) | |
download | qpdf-4c6640cb455bc9e8a2e2150be2e48455be341325.tar.zst |
Inline QPDFObjGen methods
ABI breaking change
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/CMakeLists.txt | 1 | ||||
-rw-r--r-- | libqpdf/QPDFObjGen.cc | 55 |
2 files changed, 0 insertions, 56 deletions
diff --git a/libqpdf/CMakeLists.txt b/libqpdf/CMakeLists.txt index a6e30163..0e450503 100644 --- a/libqpdf/CMakeLists.txt +++ b/libqpdf/CMakeLists.txt @@ -72,7 +72,6 @@ set(libqpdf_SOURCES QPDFMatrix.cc QPDFNameTreeObjectHelper.cc QPDFNumberTreeObjectHelper.cc - QPDFObjGen.cc QPDFObject.cc QPDFObjectHandle.cc QPDFOutlineDocumentHelper.cc diff --git a/libqpdf/QPDFObjGen.cc b/libqpdf/QPDFObjGen.cc deleted file mode 100644 index 1368b0bf..00000000 --- a/libqpdf/QPDFObjGen.cc +++ /dev/null @@ -1,55 +0,0 @@ -#include <qpdf/QPDFObjGen.hh> - -#include <qpdf/QUtil.hh> - -QPDFObjGen::QPDFObjGen() : - obj(0), - gen(0) -{ -} - -QPDFObjGen::QPDFObjGen(int o, int g) : - obj(o), - gen(g) -{ -} - -bool -QPDFObjGen::operator<(QPDFObjGen const& rhs) const -{ - return ( - (this->obj < rhs.obj) || - ((this->obj == rhs.obj) && (this->gen < rhs.gen))); -} - -bool -QPDFObjGen::operator==(QPDFObjGen const& rhs) const -{ - return ((this->obj == rhs.obj) && (this->gen == rhs.gen)); -} - -int -QPDFObjGen::getObj() const -{ - return this->obj; -} - -int -QPDFObjGen::getGen() const -{ - return this->gen; -} - -std::ostream& -operator<<(std::ostream& os, const QPDFObjGen& og) -{ - os << og.obj << "," << og.gen; - return os; -} - -std::string -QPDFObjGen::unparse() const -{ - return QUtil::int_to_string(this->obj) + "," + - QUtil::int_to_string(this->gen); -} |