summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 07:43:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 19:27:03 -0700
commitbbf76f9ee7885f6bbc10862cc6604ce4beee80f4 (patch)
treecbb24ea366a8ab1e8f83f44a021ecdcb42ae54ef
parentd58c962bdb62d8d51407e8aa2d679695530b543c (diff)
downloadsubsurface-bbf76f9ee7885f6bbc10862cc6604ce4beee80f4.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--desktop-widgets/usermanual.cpp2
1 files changed, 1 insertions, 1 deletions
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("");