mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-01 03:12:29 +00:00
Format code after previous pull request
This commit is contained in:
parent
4c6640cb45
commit
9de29daba5
@ -45,32 +45,38 @@ class QPDFObjGen
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
bool operator<(QPDFObjGen const& rhs) const
|
bool
|
||||||
|
operator<(QPDFObjGen const& rhs) const
|
||||||
{
|
{
|
||||||
return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)));
|
return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)));
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
bool operator==(QPDFObjGen const& rhs) const
|
bool
|
||||||
|
operator==(QPDFObjGen const& rhs) const
|
||||||
{
|
{
|
||||||
return ((obj == rhs.obj) && (gen == rhs.gen));
|
return ((obj == rhs.obj) && (gen == rhs.gen));
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
int getObj() const
|
int
|
||||||
|
getObj() const
|
||||||
{
|
{
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
int getGen() const
|
int
|
||||||
|
getGen() const
|
||||||
{
|
{
|
||||||
return gen;
|
return gen;
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
std::string unparse() const
|
std::string
|
||||||
|
unparse() const
|
||||||
{
|
{
|
||||||
return QUtil::int_to_string(obj) + "," + QUtil::int_to_string(gen);
|
return QUtil::int_to_string(obj) + "," + QUtil::int_to_string(gen);
|
||||||
}
|
}
|
||||||
QPDF_DLL
|
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;
|
os << og.obj << "," << og.gen;
|
||||||
return os;
|
return os;
|
||||||
|
Loading…
Reference in New Issue
Block a user