From bfb0e2da8b6fccd3d155cb46bdd3cca21e86c463 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Thu, 29 May 2014 23:03:20 +0300 Subject: [PATCH] Reset should be virtual. --- projects/stargazer/plugins/configuration/sgconfig/parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.h b/projects/stargazer/plugins/configuration/sgconfig/parser.h index e76d8f4c..3a667360 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser.h +++ b/projects/stargazer/plugins/configuration/sgconfig/parser.h @@ -39,6 +39,7 @@ public: virtual ~BASE_PARSER() {} virtual int ParseStart(void *data, const char *el, const char **attr) = 0; virtual int ParseEnd(void *data, const char *el) = 0; + virtual void Reset() { answerList->clear(); depth = 0; } void SetAnswerList(std::list * ansList) { answerList = ansList; } @@ -50,7 +51,6 @@ public: void SetCurrAdmin(ADMIN & cua) { currAdmin = &cua; } std::string & GetStrError() { return strError; } - void Reset() { answerList->clear(); depth = 0; } protected: BASE_PARSER(const BASE_PARSER & rvalue); -- 2.43.2