/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
const int BufferViewOverlay::_updateEventId = QEvent::registerEventType();
BufferViewOverlay::BufferViewOverlay(QObject *parent)
- : QObject(parent),
- _aboutToUpdate(false),
- _uninitializedViewCount(0),
- _allowedBufferTypes(0),
- _minimumActivity(0)
+ : QObject(parent)
{
}
_bufferViewIds.remove(viewId);
BufferViewConfig *config = Client::bufferViewManager()->bufferViewConfig(viewId);
if (config)
- disconnect(config, 0, this, 0);
+ disconnect(config, nullptr, this, nullptr);
// update initialized State:
bool wasInitialized = isInitialized();
void BufferViewOverlay::viewInitialized()
{
- BufferViewConfig *config = qobject_cast<BufferViewConfig *>(sender());
+ auto *config = qobject_cast<BufferViewConfig *>(sender());
Q_ASSERT(config);
viewInitialized(config);
QSet<BufferId> tempRemovedBuffers;
if (Client::bufferViewManager()) {
- BufferViewConfig *config = 0;
+ BufferViewConfig *config = nullptr;
QSet<int>::const_iterator viewIter;
for (viewIter = _bufferViewIds.constBegin(); viewIter != _bufferViewIds.constEnd(); ++viewIter) {
config = Client::bufferViewManager()->bufferViewConfig(*viewIter);