改进win下LogDialog/LogConsole的参数传递

This commit is contained in:
hyzboy 2019-08-29 15:55:58 +08:00
parent c7f4421c61
commit 89aba9674b
2 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ namespace hgl
} }
};//class LogWinConsole };//class LogWinConsole
Logger *CreateLoggerConsole(const OSString &,LogLevel ll) Logger *CreateLoggerConsole(LogLevel ll)
{ {
return(new LogWinConsole(ll)); return(new LogWinConsole(ll));
} }

View File

@ -14,9 +14,9 @@ namespace hgl
public: public:
LogWinDialog(LogLevel ll):Logger(ll) LogWinDialog(const OSString &n,LogLevel ll):Logger(ll)
{ {
name=project_code; name=n;
} }
bool Create(const UTF16String &) bool Create(const UTF16String &)
@ -45,9 +45,9 @@ namespace hgl
} }
};//class LogWinDialog };//class LogWinDialog
Logger *CreateLoggerDialog(const OSString &,LogLevel ll) Logger *CreateLoggerDialog(const OSString &n,LogLevel ll)
{ {
return(new LogWinDialog(ll)); return(new LogWinDialog(n,ll));
} }
}//namespace logger }//namespace logger
}//namespace hgl }//namespace hgl