mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Fix cppcheck reported issues (#333)
Fixes: https://github.com/microsoft/PowerToys/issues/266
This commit is contained in:
committed by
GitHub
parent
12cd7bb49f
commit
8ac6db8b5a
@@ -10,7 +10,7 @@
|
||||
class PowertoyModule;
|
||||
|
||||
struct PowertoyModuleDeleter {
|
||||
void operator()(PowertoyModuleIface* module) {
|
||||
void operator()(PowertoyModuleIface* module) const {
|
||||
if (module) {
|
||||
powertoys_events().unregister_receiver(module);
|
||||
module->disable();
|
||||
@@ -21,7 +21,7 @@ struct PowertoyModuleDeleter {
|
||||
|
||||
struct PowertoyModuleDLLDeleter {
|
||||
using pointer = HMODULE;
|
||||
void operator()(HMODULE handle) {
|
||||
void operator()(HMODULE handle) const {
|
||||
FreeLibrary(handle);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user