X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebuffersyncer.cpp;h=8fdb3915a67b463698d220295673926b65f717ea;hp=266f344b7ebf9a3dd02e41c5f0cfa29e1240a05a;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hpb=6e3574a163f07c28d44276318f2d9f92e169f491 diff --git a/src/core/corebuffersyncer.cpp b/src/core/corebuffersyncer.cpp index 266f344b..8fdb3915 100644 --- a/src/core/corebuffersyncer.cpp +++ b/src/core/corebuffersyncer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,6 +28,7 @@ #include "corenetwork.h" #include "coresession.h" #include "ircchannel.h" +#include "util.h" class PurgeEvent : public QEvent { @@ -193,7 +194,7 @@ void CoreBufferSyncer::purgeBufferIds() std::transform(bufferInfos.cbegin(), bufferInfos.cend(), std::inserter(actualBuffers, actualBuffers.end()), [](auto&& bufferInfo) { return bufferInfo.bufferId(); }); - QSet storedIds = lastSeenBufferIds().toSet() + markerLineBufferIds().toSet(); + QSet storedIds = toQSet(lastSeenBufferIds()) + toQSet(markerLineBufferIds()); foreach (BufferId bufferId, storedIds) { if (actualBuffers.find(bufferId) == actualBuffers.end()) { BufferSyncer::removeBuffer(bufferId);