aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-07-16 21:29:18 +0200
committerJay Berkenbilt <ejb@ql.org>2022-07-16 21:29:18 +0200
commit9de29daba5255ac309e1a6fea8738fa290cdb5ca (patch)
treefce860a8e4d3b1fe2c888ead28313fc6e6783892 /include
parent4c6640cb455bc9e8a2e2150be2e48455be341325 (diff)
downloadqpdf-9de29daba5255ac309e1a6fea8738fa290cdb5ca.tar.zst
Format code after previous pull request
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjGen.hh26
1 files changed, 16 insertions, 10 deletions
diff --git a/include/qpdf/QPDFObjGen.hh b/include/qpdf/QPDFObjGen.hh
index 28042dde..ba6e169d 100644
--- a/include/qpdf/QPDFObjGen.hh
+++ b/include/qpdf/QPDFObjGen.hh
@@ -34,43 +34,49 @@ class QPDFObjGen
public:
QPDF_DLL
QPDFObjGen() :
- obj(0),
- gen(0)
+ obj(0),
+ gen(0)
{
}
QPDF_DLL
QPDFObjGen(int obj, int gen) :
- obj(obj),
- gen(gen)
+ obj(obj),
+ gen(gen)
{
}
QPDF_DLL
- bool operator<(QPDFObjGen const& rhs) const
+ bool
+ operator<(QPDFObjGen const& rhs) const
{
return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)));
}
QPDF_DLL
- bool operator==(QPDFObjGen const& rhs) const
+ bool
+ operator==(QPDFObjGen const& rhs) const
{
return ((obj == rhs.obj) && (gen == rhs.gen));
}
QPDF_DLL
- int getObj() const
+ int
+ getObj() const
{
return obj;
}
QPDF_DLL
- int getGen() const
+ int
+ getGen() const
{
return gen;
}
QPDF_DLL
- std::string unparse() const
+ std::string
+ unparse() const
{
return QUtil::int_to_string(obj) + "," + QUtil::int_to_string(gen);
}
QPDF_DLL
- friend std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og)
+ friend std::ostream&
+ operator<<(std::ostream& os, const QPDFObjGen& og)
{
os << og.obj << "," << og.gen;
return os;