diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 07:43:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 19:27:03 -0700 |
commit | bbf76f9ee7885f6bbc10862cc6604ce4beee80f4 (patch) | |
tree | cbb24ea366a8ab1e8f83f44a021ecdcb42ae54ef | |
parent | d58c962bdb62d8d51407e8aa2d679695530b543c (diff) | |
download | subsurface-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.cpp | 2 |
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(""); |