projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use nullptr
[quassel.git]
/
src
/
qtui
/
chatviewsearchcontroller.cpp
diff --git
a/src/qtui/chatviewsearchcontroller.cpp
b/src/qtui/chatviewsearchcontroller.cpp
index
b1970c4
..
bb6dc36
100644
(file)
--- a/
src/qtui/chatviewsearchcontroller.cpp
+++ b/
src/qtui/chatviewsearchcontroller.cpp
@@
-31,7
+31,7
@@
ChatViewSearchController::ChatViewSearchController(QObject *parent)
: QObject(parent),
ChatViewSearchController::ChatViewSearchController(QObject *parent)
: QObject(parent),
- _scene(
0
),
+ _scene(
nullptr
),
_currentHighlight(0),
_caseSensitive(false),
_searchSenders(false),
_currentHighlight(0),
_caseSensitive(false),
_searchSenders(false),
@@
-65,8
+65,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
+357,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();