Commit 9a80c74b authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Fix some implicit-bool-conversions

parent 6733a936
......@@ -232,7 +232,7 @@ SessionController::~SessionController()
if (!_editProfileDialog.isNull()) {
delete _editProfileDialog.data();
}
if(factory()) {
if(factory() != nullptr) {
factory()->removeClient(this);
}
}
......@@ -1718,7 +1718,7 @@ void SessionController::showDisplayContextMenu(const QPoint& position)
// prepend content-specific actions such as "Open Link", "Copy Email Address" etc.
QSharedPointer<Filter::HotSpot> hotSpot = _view->filterActions(position);
if (hotSpot) {
if (hotSpot != nullptr) {
popup->insertActions(popup->actions().value(0, nullptr), hotSpot->actions() << contentSeparator );
}
......
......@@ -4070,7 +4070,7 @@ void CompositeWidgetFocusWatcher::registerWidgetAndChildren(QWidget *widget)
}
for (auto *child: widget->children()) {
auto *childWidget = qobject_cast<QWidget *>(child);
if (childWidget) {
if (childWidget != nullptr) {
registerWidgetAndChildren(childWidget);
}
}
......
......@@ -1023,7 +1023,7 @@ QStringList ViewManager::sessionList()
int ViewManager::currentSession()
{
if (_pluggedController) {
if (_pluggedController != nullptr) {
Q_ASSERT(_pluggedController->session() != nullptr);
return _pluggedController->session()->sessionId();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment