From c239568658d4218b9b9480f91678769d91fb5478 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 4 Jun 2020 13:02:39 +0800 Subject: [PATCH] Don't use deprecated QTextStreamFunctions::flush() Qt doc states: "If QTextStream operates on a string, this function does nothing". So remove it. --- src/app/cmdoptions.cpp | 1 - src/gui/search/searchwidget.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/cmdoptions.cpp b/src/app/cmdoptions.cpp index 532f2a0a9..ffb7b8c7c 100644 --- a/src/app/cmdoptions.cpp +++ b/src/app/cmdoptions.cpp @@ -565,7 +565,6 @@ QString makeUsage(const QString &prgName) << QLatin1String("QBT_NO_SPLASH=1 ") << prgName << '\n' << wrapText(QObject::tr("Command line parameters take precedence over environment variables"), 0) << '\n'; - stream << flush; return text; } diff --git a/src/gui/search/searchwidget.cpp b/src/gui/search/searchwidget.cpp index af12f85cf..9e4ab965a 100644 --- a/src/gui/search/searchwidget.cpp +++ b/src/gui/search/searchwidget.cpp @@ -99,7 +99,7 @@ SearchWidget::SearchWidget(MainWindow *mainWindow) << tr(""foo bar": search for foo bar", "Search phrase example, illustrates quotes usage, double quoted" "pair of space delimited words, the whole pair is highlighted") - << "

" << flush; + << "

"; m_ui->lineEditSearchPattern->setToolTip(searchPatternHint); #ifndef Q_OS_MACOS