Skip to content

Commit

Permalink
refactor: LoggerHelper 改为静态 WinRT 类
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Oct 19, 2024
1 parent 456197b commit 8d39817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/Magpie.App/LoggerHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

namespace winrt::Magpie::App::implementation {

struct LoggerHelper : LoggerHelperT<LoggerHelper> {
LoggerHelper() = default;

struct LoggerHelper {
static void Initialize(uint64_t pLogger);
};

Expand Down
9 changes: 2 additions & 7 deletions src/Magpie.App/LoggerHelper.idl
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
namespace Magpie.App
{
[default_interface]
runtimeclass LoggerHelper
{
LoggerHelper();

namespace Magpie.App {
static runtimeclass LoggerHelper {
static void Initialize(UInt64 pLogger);
}
}

0 comments on commit 8d39817

Please sign in to comment.