当前对象

This commit is contained in:
大石头 2017-05-31 09:37:09 +08:00
parent 11dbe463ec
commit 54bc32a046
1 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,8 @@ bool GatherConfig::Set(const Pair& args, Stream& result)
{
debug_printf("GatherConfig::Set\r\n");
auto cfg = GatherConfig::Create();
//auto cfg = GatherConfig::Create();
auto cfg = this;
args.Get("RenderPeriod", cfg->RenderPeriod);
args.Get("ReportPeriod", cfg->ReportPeriod);
@ -43,7 +44,8 @@ bool GatherConfig::Get(const Pair& args, Stream& result)
{
debug_printf("GatherConfig::Get\r\n");
auto cfg = GatherConfig::Create();
//auto cfg = GatherConfig::Create();
auto cfg = this;
cfg->Write(result);
return true;