summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-04-20 14:18:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-04-20 14:18:00 +0300
commit7ff20362f58bb2cbdf64545b375090e02a4ae504 (patch)
tree712620452bca11807c88a33ca8655f86c3acab00 /include
parentdbc18aef69c444c6368f65b11bb031b322ac5ffd (diff)
more fixes for #3066
Diffstat (limited to 'include')
-rw-r--r--include/m_gui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index b4e2c4a5d4..6ff14548d7 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -113,6 +113,10 @@ public:
__forceinline const char* GetDBModuleName() const { return m_szModuleName; }
__forceinline const char* GetDBSettingName() const { return m_szSetting; }
+ __forceinline void Delete() const
+ { db_unset(0, m_szModuleName, m_szSetting);
+ }
+
protected:
__forceinline CMOptionBase(PROTO_INTERFACE *proto, const char *szSetting) :
m_szModuleName(proto->m_szModuleName), m_szSetting(szSetting)