From bbf76f9ee7885f6bbc10862cc6604ce4beee80f4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Oct 2020 07:43:10 -0700 Subject: cleanup: don't initialize flags with just an integer This is slightly different from the previous cleanup around QFlag use as this one is related to QtWebKit flags. But the logic is the same. Just syntax to avoid a warning. Signed-off-by: Dirk Hohndel --- desktop-widgets/usermanual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/usermanual.cpp b/desktop-widgets/usermanual.cpp index 42ca4e0a7..a693cef2d 100644 --- a/desktop-widgets/usermanual.cpp +++ b/desktop-widgets/usermanual.cpp @@ -97,7 +97,7 @@ UserManual::UserManual(QWidget *parent) : QDialog(parent) setLayout(vboxLayout); } -void UserManual::search(QString text, QWebPage::FindFlags flags = 0) +void UserManual::search(QString text, QWebPage::FindFlags flags = QFlag(0)) { if (userManual->findText(text, QWebPage::FindWrapsAroundDocument | flags) || text.length() == 0) { searchBar->setStyleSheet(""); -- cgit v1.2.3-70-g09d2