[runner] rename 'module' variables (#8999)

rename all occurrences of 'module' to 'pt_module' to prevent intellisense error
This commit is contained in:
Enrico Giordani
2021-01-08 19:26:38 +01:00
committed by GitHub
parent cccd2c0139
commit dbda4d50bd
3 changed files with 21 additions and 21 deletions

View File

@@ -10,11 +10,11 @@
struct PowertoyModuleDeleter
{
void operator()(PowertoyModuleIface* module) const
void operator()(PowertoyModuleIface* pt_module) const
{
if (module)
if (pt_module)
{
module->destroy();
pt_module->destroy();
}
}
};
@@ -31,11 +31,11 @@ struct PowertoyModuleDLLDeleter
class PowertoyModule
{
public:
PowertoyModule(PowertoyModuleIface* module, HMODULE handle);
PowertoyModule(PowertoyModuleIface* pt_module, HMODULE handle);
inline PowertoyModuleIface* operator->()
{
return module.get();
return pt_module.get();
}
json::JsonObject json_config() const;
@@ -44,7 +44,7 @@ public:
private:
std::unique_ptr<HMODULE, PowertoyModuleDLLDeleter> handle;
std::unique_ptr<PowertoyModuleIface, PowertoyModuleDeleter> module;
std::unique_ptr<PowertoyModuleIface, PowertoyModuleDeleter> pt_module;
};
PowertoyModule load_powertoy(const std::wstring_view filename);