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/QPDFSystemError.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/QPDFSystemError.hh')
-rw-r--r-- | include/qpdf/QPDFSystemError.hh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/qpdf/QPDFSystemError.hh b/include/qpdf/QPDFSystemError.hh index 92c88329..b8595e09 100644 --- a/include/qpdf/QPDFSystemError.hh +++ b/include/qpdf/QPDFSystemError.hh @@ -22,19 +22,18 @@ #ifndef QPDFSYSTEMERROR_HH #define QPDFSYSTEMERROR_HH +#include <qpdf/Constants.h> #include <qpdf/DLL.h> #include <qpdf/Types.h> -#include <qpdf/Constants.h> -#include <string> #include <stdexcept> +#include <string> class QPDF_DLL_CLASS QPDFSystemError: public std::runtime_error { public: QPDF_DLL - QPDFSystemError(std::string const& description, - int system_errno); + QPDFSystemError(std::string const& description, int system_errno); QPDF_DLL virtual ~QPDFSystemError() noexcept; @@ -48,8 +47,8 @@ class QPDF_DLL_CLASS QPDFSystemError: public std::runtime_error int getErrno() const; private: - static std::string createWhat(std::string const& description, - int system_errno); + static std::string + createWhat(std::string const& description, int system_errno); // This class does not use the Members pattern to avoid needless // memory allocations during exception handling. |