diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/OptionHandlerException.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/OptionHandlerException.h')
| -rw-r--r-- | src/OptionHandlerException.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/OptionHandlerException.h b/src/OptionHandlerException.h index 3913c6f7..150ffbb3 100644 --- a/src/OptionHandlerException.h +++ b/src/OptionHandlerException.h @@ -39,30 +39,27 @@ namespace aria2 { -class OptionHandlerException:public RecoverableException { +class OptionHandlerException : public RecoverableException { private: PrefPtr pref_; + protected: virtual std::shared_ptr<Exception> copy() const CXX11_OVERRIDE; + public: - OptionHandlerException(const char* file, int line, - PrefPtr pref); + OptionHandlerException(const char* file, int line, PrefPtr pref); - OptionHandlerException(const char* file, int line, - PrefPtr pref, + OptionHandlerException(const char* file, int line, PrefPtr pref, const Exception& cause); virtual ~OptionHandlerException() throw(); - PrefPtr getPref() const - { - return pref_; - } + PrefPtr getPref() const { return pref_; } }; -#define OPTION_HANDLER_EXCEPTION(arg) \ +#define OPTION_HANDLER_EXCEPTION(arg) \ OptionHandlerException(__FILE__, __LINE__, arg) -#define OPTION_HANDLER_EXCEPTION2(arg1, arg2) \ +#define OPTION_HANDLER_EXCEPTION2(arg1, arg2) \ OptionHandlerException(__FILE__, __LINE__, arg1, arg2) } // namespace aria2 |
