mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Fix runner warnings (#8211)
This commit is contained in:
@@ -102,7 +102,6 @@
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="FancyZonesLogger.h" />
|
||||
<ClInclude Include="FancyZones.h" />
|
||||
<ClInclude Include="FancyZonesDataTypes.h" />
|
||||
<ClInclude Include="FancyZonesWinHookEventIDs.h" />
|
||||
@@ -128,7 +127,6 @@
|
||||
<ItemGroup>
|
||||
<ClCompile Include="FancyZones.cpp" />
|
||||
<ClCompile Include="FancyZonesDataTypes.cpp" />
|
||||
<ClCompile Include="FancyZonesLogger.cpp" />
|
||||
<ClCompile Include="FancyZonesWinHookEventIDs.cpp" />
|
||||
<ClCompile Include="FancyZonesData.cpp" />
|
||||
<ClCompile Include="JsonHelpers.cpp" />
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include <common\settings_helpers.h>
|
||||
#include <filesystem>
|
||||
#include "FancyZonesLogger.h"
|
||||
|
||||
std::shared_ptr<Logger> FancyZonesLogger::logger;
|
||||
|
||||
void FancyZonesLogger::Init(std::wstring moduleSaveLocation)
|
||||
{
|
||||
std::filesystem::path logFilePath(moduleSaveLocation);
|
||||
logFilePath.append(LogSettings::fancyZonesLogPath);
|
||||
logger = std::make_shared<Logger>(LogSettings::fancyZonesLoggerName, logFilePath.wstring(), PTSettingsHelper::get_log_settings_file_location());
|
||||
logger->info("FancyZones logger initialized");
|
||||
}
|
||||
|
||||
std::shared_ptr<Logger> FancyZonesLogger::GetLogger()
|
||||
{
|
||||
if (!logger)
|
||||
{
|
||||
throw "FancyZones logger is not initialized";
|
||||
}
|
||||
|
||||
return logger;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
#include <common/logger/logger.h>
|
||||
|
||||
class FancyZonesLogger
|
||||
{
|
||||
static std::shared_ptr<Logger> logger;
|
||||
public:
|
||||
static void Init(std::wstring moduleSaveLocation);
|
||||
static std::shared_ptr<Logger> GetLogger();
|
||||
};
|
||||
Reference in New Issue
Block a user