summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-11 20:07:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-11 20:07:31 +0000
commita1150c4561b74789756e3cd58a2a42ee53e4737f (patch)
tree4465935c981cffa6ba05d1bc0899ca5d0dc9856c /plugins/HistoryStats/src
parent29d0fd99991e9deaae5787b4568b407c50630f84 (diff)
attempt to fix a crash in HistoryStats
git-svn-id: http://svn.miranda-ng.org/main/trunk@8563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src')
-rw-r--r--plugins/HistoryStats/src/settingsserializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HistoryStats/src/settingsserializer.cpp b/plugins/HistoryStats/src/settingsserializer.cpp
index 5416f492a8..dae50d05e4 100644
--- a/plugins/HistoryStats/src/settingsserializer.cpp
+++ b/plugins/HistoryStats/src/settingsserializer.cpp
@@ -224,8 +224,8 @@ void SettingsSerializer::readFromDB()
// read filter attributes
settingsTree.setKey(strPrefix.c_str());
- Filter* curFilter = (Filter*)&(m_FilterWords.insert(Filter(settingsTree.readStr(con::KeyID, _T("")))).first);
-
+ FilterSet::iterator F = m_FilterWords.insert(Filter(settingsTree.readStr(con::KeyID, _T("")))).first;
+ Filter* curFilter = (Filter*)&F;
curFilter->setName(settingsTree.readStr(con::KeyName, _T("")));
curFilter->setMode(settingsTree.readIntRanged(con::KeyMode, fwmWordsMatching, fwmFIRST, fwmLAST));