diff --git a/src/oomd/engine/BasePlugin.h b/src/oomd/engine/BasePlugin.h index 866921f6..dd45e63e 100644 --- a/src/oomd/engine/BasePlugin.h +++ b/src/oomd/engine/BasePlugin.h @@ -58,7 +58,7 @@ class BasePlugin { * because it is guaranteed to be called each interval, but run() may not. * Therefore, this function should be lightweight, i.e. no sleep() inside. */ - virtual void prerun(OomdContext& context){}; + virtual void prerun(OomdContext& context) {} /* * This is the main work method every plugin will implement. diff --git a/src/oomd/util/ScopeGuard.h b/src/oomd/util/ScopeGuard.h index ccc33dba..ecbecc71 100644 --- a/src/oomd/util/ScopeGuard.h +++ b/src/oomd/util/ScopeGuard.h @@ -32,13 +32,13 @@ class ScopeGuard { public: explicit ScopeGuard(std::function fn) { fn_ = fn; - }; + } ~ScopeGuard() { if (fn_) { fn_(); } - }; + } private: std::function fn_;