summary refs log tree commit diff
path: root/src/popups
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-04 04:58:43 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-04 04:58:43 +0100
commit7ccc120f6345bff8dad4abb349669973746aa8da (patch)
tree4922b19543b810cfa73fc9bf87d82d1341601870 /src/popups
parentImprove styling a bit (diff)
downloadnheko-7ccc120f6345bff8dad4abb349669973746aa8da.tar.xz
modernize: use nullptr
Diffstat (limited to 'src/popups')
-rw-r--r--src/popups/ReplyPopup.cpp6
-rw-r--r--src/popups/SuggestionsPopup.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/popups/ReplyPopup.cpp b/src/popups/ReplyPopup.cpp

index 42a5a6d3..5058c039 100644 --- a/src/popups/ReplyPopup.cpp +++ b/src/popups/ReplyPopup.cpp
@@ -13,9 +13,9 @@ ReplyPopup::ReplyPopup(QWidget *parent) : QWidget(parent) - , userItem_{0} - , msgLabel_{0} - , eventLabel_{0} + , userItem_{nullptr} + , msgLabel_{nullptr} + , eventLabel_{nullptr} { setAttribute(Qt::WA_ShowWithoutActivating, true); setWindowFlags(Qt::ToolTip | Qt::NoDropShadowWindowHint); diff --git a/src/popups/SuggestionsPopup.h b/src/popups/SuggestionsPopup.h
index dcd054f8..f84870e7 100644 --- a/src/popups/SuggestionsPopup.h +++ b/src/popups/SuggestionsPopup.h
@@ -59,7 +59,7 @@ private: size_t posToRemove = layout_->count() - 1; QLayoutItem *item; - while (startingPos <= posToRemove && (item = layout_->takeAt(posToRemove)) != 0) { + while (startingPos <= posToRemove && (item = layout_->takeAt(posToRemove)) != nullptr) { delete item->widget(); delete item;