summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 43e9d1e516..0db96c8b51 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -333,7 +333,7 @@ void HistoryArray::clear()
iLastPageCounter = 0;
}
-void HistoryArray::addChatEvent(SESSION_INFO *si, LOGINFO *lin)
+void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
{
if (si == nullptr)
return;
@@ -406,12 +406,12 @@ bool HistoryArray::addEvent(MCONTACT hContact, MEVENT hEvent, int count)
return true;
}
-void HistoryArray::addResults(OBJLIST<SearchResult> *pArray)
+void HistoryArray::addResults(const OBJLIST<SearchResult> &pArray)
{
int numItems = getCount();
auto *pPrev = (numItems == 0) ? nullptr : get(numItems - 1);
- for (auto &it : *pArray) {
+ for (auto &it : pArray) {
auto &p = allocateItem();
p.hContact = it->hContact;
p.hEvent = it->hEvent;