summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-01 17:18:31 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-01 17:18:31 +0300
commit346bc8cafe1feaacaecc0663042fd8ab9320c855 (patch)
tree701335886aebc3f5867de5d14c3258e6ddbc1ffa /plugins
parentf3350f5b892a4809faf0703e81cc865190572648 (diff)
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_array.h4
-rw-r--r--plugins/NewStory/src/options.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h
index df9f2f9595..0de2c23f68 100644
--- a/plugins/NewStory/src/history_array.h
+++ b/plugins/NewStory/src/history_array.h
@@ -1,7 +1,7 @@
#ifndef __history_array__
#define __history_array__
-struct ItemData : public MZeroedObject
+struct ItemData
{
MCONTACT hContact;
MEVENT hEvent;
@@ -19,7 +19,7 @@ struct ItemData : public MZeroedObject
HANDLE data;
ItemData *pPrev;
- ItemData() {}
+ ItemData() { memset(this, 0, sizeof(*this)); }
~ItemData();
void checkCreate(HWND hwnd);
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index b57cb06d6d..3e8beaadfc 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -210,7 +210,7 @@ public:
MessageBox(m_hwnd, wszVarHelp, TranslateT("Variables help"), MB_OK);
}
- void onSelChanged(CCtrlTreeView::TEventInfo*)
+ void onSelChanged(CCtrlTreeView::TEventInfo *)
{
TVITEMEX tvi;
tvi.hItem = m_tree.GetSelection();
@@ -226,10 +226,8 @@ public:
bthVarHelp.Disable();
HTREEITEM hItem = m_tree.GetChild(tvi.hItem);
- if (hItem) {
+ if (hItem)
m_tree.Expand(tvi.hItem, TVE_EXPAND);
- m_tree.SelectItem(hItem);
- }
return;
}