Commit 9de29daba5255ac309e1a6fea8738fa290cdb5ca

Authored by Jay Berkenbilt
1 parent 4c6640cb

Format code after previous pull request

Showing 1 changed file with 16 additions and 10 deletions
include/qpdf/QPDFObjGen.hh
... ... @@ -34,43 +34,49 @@ class QPDFObjGen
34 34 public:
35 35 QPDF_DLL
36 36 QPDFObjGen() :
37   - obj(0),
38   - gen(0)
  37 + obj(0),
  38 + gen(0)
39 39 {
40 40 }
41 41 QPDF_DLL
42 42 QPDFObjGen(int obj, int gen) :
43   - obj(obj),
44   - gen(gen)
  43 + obj(obj),
  44 + gen(gen)
45 45 {
46 46 }
47 47 QPDF_DLL
48   - bool operator<(QPDFObjGen const& rhs) const
  48 + bool
  49 + operator<(QPDFObjGen const& rhs) const
49 50 {
50 51 return ((obj < rhs.obj) || ((obj == rhs.obj) && (gen < rhs.gen)));
51 52 }
52 53 QPDF_DLL
53   - bool operator==(QPDFObjGen const& rhs) const
  54 + bool
  55 + operator==(QPDFObjGen const& rhs) const
54 56 {
55 57 return ((obj == rhs.obj) && (gen == rhs.gen));
56 58 }
57 59 QPDF_DLL
58   - int getObj() const
  60 + int
  61 + getObj() const
59 62 {
60 63 return obj;
61 64 }
62 65 QPDF_DLL
63   - int getGen() const
  66 + int
  67 + getGen() const
64 68 {
65 69 return gen;
66 70 }
67 71 QPDF_DLL
68   - std::string unparse() const
  72 + std::string
  73 + unparse() const
69 74 {
70 75 return QUtil::int_to_string(obj) + "," + QUtil::int_to_string(gen);
71 76 }
72 77 QPDF_DLL
73   - friend std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og)
  78 + friend std::ostream&
  79 + operator<<(std::ostream& os, const QPDFObjGen& og)
74 80 {
75 81 os << og.obj << "," << og.gen;
76 82 return os;
... ...