diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-02 23:14:10 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-04 14:10:40 +0200 |
commit | 12f1eb15ca3fed6310402847559a7c99d3c77847 (patch) | |
tree | 8935675b623c6f3b4914b8b44f7fa5f2816a9241 /include/qpdf/QPDFObject.hh | |
parent | f20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (diff) | |
download | qpdf-12f1eb15ca3fed6310402847559a7c99d3c77847.tar.zst |
Programmatically apply new formatting to code
Run this:
for i in **/*.cc **/*.c **/*.h **/*.hh; do
clang-format < $i >| $i.new && mv $i.new $i
done
Diffstat (limited to 'include/qpdf/QPDFObject.hh')
-rw-r--r-- | include/qpdf/QPDFObject.hh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index d01ea8ed..9487e8f5 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -22,10 +22,10 @@ #ifndef QPDFOBJECT_HH #define QPDFOBJECT_HH +#include <qpdf/Constants.h> #include <qpdf/DLL.h> -#include <qpdf/Types.h> #include <qpdf/JSON.hh> -#include <qpdf/Constants.h> +#include <qpdf/Types.h> #include <string> @@ -62,7 +62,9 @@ class QPDF_DLL_CLASS QPDFObject static constexpr object_type_e ot_operator = ::ot_operator; static constexpr object_type_e ot_inlineimage = ::ot_inlineimage; - virtual ~QPDFObject() {} + virtual ~QPDFObject() + { + } virtual std::string unparse() = 0; virtual JSON getJSON() = 0; @@ -78,11 +80,12 @@ class QPDF_DLL_CLASS QPDFObject { friend class QPDF; friend class QPDFObjectHandle; + private: - static void releaseResolved(QPDFObject* o) + static void + releaseResolved(QPDFObject* o) { - if (o) - { + if (o) { o->releaseResolved(); } } @@ -97,7 +100,10 @@ class QPDF_DLL_CLASS QPDFObject qpdf_offset_t getParsedOffset(); protected: - virtual void releaseResolved() {} + virtual void + releaseResolved() + { + } private: QPDFObject(QPDFObject const&) = delete; |