diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-12-21 14:27:46 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-12-21 14:27:46 +0900 |
commit | b04fea786696a73a67457fbb38e7a5421aab7762 (patch) | |
tree | 71bc7d78703d44b7e25aff349efc3732fa920f4e | |
parent | 5a355020c0caa927098504d9d338b9b7b03dd78e (diff) | |
download | cert-checker-b04fea786696a73a67457fbb38e7a5421aab7762.tar.gz cert-checker-b04fea786696a73a67457fbb38e7a5421aab7762.tar.bz2 cert-checker-b04fea786696a73a67457fbb38e7a5421aab7762.zip |
Remove throw logic on destructor
* Since c++11, non-throwing functions are all others
* (those with noexcept specifier whose expression
* evaluates to true as well as destructors,
* defaulted special member functions,
* and deallocation functions).
See, http://en.cppreference.com/w/cpp/language/noexcept_spec
Change-Id: I0d7b2a55db49533fe63729e15aeaaf2c8c976569
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r-- | src/common/mainloop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mainloop.cpp b/src/common/mainloop.cpp index 0c0d19f..9bb3185 100644 --- a/src/common/mainloop.cpp +++ b/src/common/mainloop.cpp @@ -46,8 +46,8 @@ Mainloop::Mainloop() : Mainloop::~Mainloop() { if (!m_stopped && !m_isTimedOut && !m_callbacks.empty()) - throw std::logic_error("mainloop registered callbacks should be empty " - "except timed out case"); + LogError("mainloop registered callbacks should be empty " + "except timed out case"); ::close(m_pollfd); } |