From a1150c4561b74789756e3cd58a2a42ee53e4737f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Mar 2014 20:07:31 +0000 Subject: attempt to fix a crash in HistoryStats git-svn-id: http://svn.miranda-ng.org/main/trunk@8563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/settingsserializer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/HistoryStats/src') 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)); -- cgit v1.2.3