From 89aba9674ba6f70f5060dbdf28316e9f1f072cd4 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 29 Aug 2019 15:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bwin=E4=B8=8BLogDialog/LogCons?= =?UTF-8?q?ole=E7=9A=84=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Win/LogConsole.cpp | 2 +- src/Win/LogDialog.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Win/LogConsole.cpp b/src/Win/LogConsole.cpp index 8eafbac..9f20554 100644 --- a/src/Win/LogConsole.cpp +++ b/src/Win/LogConsole.cpp @@ -58,7 +58,7 @@ namespace hgl } };//class LogWinConsole - Logger *CreateLoggerConsole(const OSString &,LogLevel ll) + Logger *CreateLoggerConsole(LogLevel ll) { return(new LogWinConsole(ll)); } diff --git a/src/Win/LogDialog.cpp b/src/Win/LogDialog.cpp index a01fd27..866a22a 100644 --- a/src/Win/LogDialog.cpp +++ b/src/Win/LogDialog.cpp @@ -14,9 +14,9 @@ namespace hgl public: - LogWinDialog(LogLevel ll):Logger(ll) + LogWinDialog(const OSString &n,LogLevel ll):Logger(ll) { - name=project_code; + name=n; } bool Create(const UTF16String &) @@ -45,9 +45,9 @@ namespace hgl } };//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 hgl