Commit e79af97c authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Fix bool implicit conversions

parent 18ef6bc1
...@@ -710,7 +710,7 @@ void FileFilter::HotSpot::thumbnailRequested() { ...@@ -710,7 +710,7 @@ void FileFilter::HotSpot::thumbnailRequested() {
_thumbnailPos = QPoint(_eventPos.x() + 100, _eventPos.y() - settings->thumbnailSize() / 2); _thumbnailPos = QPoint(_eventPos.x() + 100, _eventPos.y() - settings->thumbnailSize() / 2);
const int size = KonsoleSettings::thumbnailSize(); const int size = KonsoleSettings::thumbnailSize();
if (_previewJob) { if (_previewJob != nullptr) {
_previewJob->deleteLater(); _previewJob->deleteLater();
} }
......
...@@ -286,8 +286,8 @@ QSize TabbedViewContainer::sizeHint() const ...@@ -286,8 +286,8 @@ QSize TabbedViewContainer::sizeHint() const
const auto tabsSize = tabBar()->sizeHint(); const auto tabsSize = tabBar()->sizeHint();
const auto *leftWidget = cornerWidget(Qt::TopLeftCorner); const auto *leftWidget = cornerWidget(Qt::TopLeftCorner);
const auto *rightWidget = cornerWidget(Qt::TopRightCorner); const auto *rightWidget = cornerWidget(Qt::TopRightCorner);
const auto leftSize = leftWidget ? leftWidget->sizeHint() : QSize(0, 0); const auto leftSize = leftWidget != nullptr ? leftWidget->sizeHint() : QSize(0, 0);
const auto rightSize = rightWidget ? rightWidget->sizeHint() : QSize(0, 0); const auto rightSize = rightWidget != nullptr ? rightWidget->sizeHint() : QSize(0, 0);
auto tabBarSize = QSize(0, 0); auto tabBarSize = QSize(0, 0);
// isVisible() won't work; this is called when the window is not yet visible // isVisible() won't work; this is called when the window is not yet visible
...@@ -296,7 +296,7 @@ QSize TabbedViewContainer::sizeHint() const ...@@ -296,7 +296,7 @@ QSize TabbedViewContainer::sizeHint() const
tabBarSize.setHeight(qMax(tabsSize.height(), qMax(leftSize.height(), rightSize.height()))); tabBarSize.setHeight(qMax(tabsSize.height(), qMax(leftSize.height(), rightSize.height())));
} }
const auto terminalSize = currentWidget() ? currentWidget()->sizeHint() : QSize(0, 0); const auto terminalSize = currentWidget() != nullptr ? currentWidget()->sizeHint() : QSize(0, 0);
// width // width
// ├──────────────────┤ // ├──────────────────┤
......
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