made ircmanager::connection a shared_pointer

This commit is contained in:
fourtf
2017-01-30 19:43:17 +01:00
parent 1d1c98ecdb
commit 3c8d2740de
3 changed files with 6 additions and 10 deletions
+1 -3
View File
@@ -15,9 +15,7 @@ Channels::getItems()
{
QMutexLocker locker(&Channels::channelsMutex);
int size = Channels::channels.size();
std::vector<std::shared_ptr<Channel>> items(size);
std::vector<std::shared_ptr<Channel>> items;
for (auto &item : Channels::channels.values()) {
items.push_back(std::get<0>(item));