Fix issues detected by static program analysis 77/56977/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 14 Jan 2016 05:22:55 +0000 (14:22 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 14 Jan 2016 05:22:55 +0000 (14:22 +0900)
Change-Id: I55a5acda76b9a6dc22a9f3c695098db966bee3bf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/context_trigger/rule.cpp
src/context_trigger/rule.h
src/context_trigger/trigger.cpp

index 13a7a68fe1abdc291ea61add872c498c9e6fd582..5c05f60c3b32e3e1244f906076a01cd700c98ec8 100644 (file)
 
 ctx::rule_manager *ctx::trigger_rule::rule_mgr = NULL;
 
-ctx::trigger_rule::trigger_rule()
-{
-}
-
 ctx::trigger_rule::trigger_rule(int i, ctx::json& d, const char* cr, rule_manager* rm)
        : result(EMPTY_JSON_OBJECT)
        , id(i)
index cbbc66af3c44b21d080dd5f5e67b7feeecd74e6d..3fc3688f541f5908dfc957d465dc58797f7d9c62 100644 (file)
@@ -60,7 +60,6 @@ namespace ctx {
                        int id;
                        std::string creator;
 
-                       trigger_rule();
                        trigger_rule(int i, ctx::json& d, const char* c, rule_manager* rm);
                        ~trigger_rule();
 
index 84a6e797f2cc869c539da336af7971f70f412a3b..7e904a1511c432ecfd624a34ab555b93f4b91e2f 100644 (file)
@@ -22,6 +22,8 @@
 #include "template_manager.h"
 
 ctx::context_trigger::context_trigger()
+       : rule_mgr(NULL)
+       , tmpl_mgr(NULL)
 {
 }