projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Prefer default member init over ctor init
[quassel.git]
/
src
/
qtui
/
chatviewsearchcontroller.cpp
diff --git
a/src/qtui/chatviewsearchcontroller.cpp
b/src/qtui/chatviewsearchcontroller.cpp
index
7bae02f
..
930aea5
100644
(file)
--- a/
src/qtui/chatviewsearchcontroller.cpp
+++ b/
src/qtui/chatviewsearchcontroller.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
6
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-30,13
+30,7
@@
#include "messagemodel.h"
ChatViewSearchController::ChatViewSearchController(QObject *parent)
#include "messagemodel.h"
ChatViewSearchController::ChatViewSearchController(QObject *parent)
- : QObject(parent),
- _scene(0),
- _currentHighlight(0),
- _caseSensitive(false),
- _searchSenders(false),
- _searchMsgs(true),
- _searchOnlyRegularMsgs(true)
+ : QObject(parent)
{
}
{
}
@@
-65,8
+59,8
@@
void ChatViewSearchController::setScene(ChatScene *scene)
return;
if (_scene) {
return;
if (_scene) {
- disconnect(_scene,
0, this, 0
);
- disconnect(Client::messageModel(),
0, this, 0
);
+ disconnect(_scene,
nullptr, this, nullptr
);
+ disconnect(Client::messageModel(),
nullptr, this, nullptr
);
qDeleteAll(_highlightItems);
_highlightItems.clear();
}
qDeleteAll(_highlightItems);
_highlightItems.clear();
}
@@
-357,7
+351,7
@@
void ChatViewSearchController::repositionHighlights(ChatLine *line)
void ChatViewSearchController::sceneDestroyed()
{
// WARNING: don't call any methods on scene!
void ChatViewSearchController::sceneDestroyed()
{
// WARNING: don't call any methods on scene!
- _scene =
0
;
+ _scene =
nullptr
;
// the items will be automatically deleted when the scene is destroyed
// so we just have to clear the list;
_highlightItems.clear();
// the items will be automatically deleted when the scene is destroyed
// so we just have to clear the list;
_highlightItems.clear();