Fix readability-implicit-bool-cast issues using nullptr

This commit is contained in:
Kurt Hindenburg
2017-04-21 10:51:31 -04:00
parent 29382cc62e
commit a540e6fdd0
31 changed files with 204 additions and 204 deletions

View File

@@ -101,7 +101,7 @@ QUrl BookmarkHandler::currentUrl() const
QUrl BookmarkHandler::urlForView(ViewProperties* view) const
{
if (view)
if (view != nullptr)
return QUrl(view->url());
else
return QUrl();
@@ -114,7 +114,7 @@ QString BookmarkHandler::currentTitle() const
QString BookmarkHandler::titleForView(ViewProperties* view) const
{
const QUrl& url = view ? view->url() : QUrl();
const QUrl& url = view != nullptr ? view->url() : QUrl();
if (url.isLocalFile()) {
QString path = url.path();
@@ -139,7 +139,7 @@ QString BookmarkHandler::currentIcon() const
QString BookmarkHandler::iconForView(ViewProperties* view) const
{
if (view)
if (view != nullptr)
return view->icon().name();
else
return QString();