diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-02-08 12:38:10 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-02-14 07:59:13 +0000 |
commit | 91b4249ea708dca9c344407621fa4814f59818ce (patch) | |
tree | 8bbc9e1179f3acec56e5ba79fddb48c47e580d8d | |
parent | 901a6b98b1c2eaf79a0b0e4082ac0703e28794e2 (diff) | |
download | qtwebengine-91b4249ea708dca9c344407621fa4814f59818ce.tar.gz |
Fix clang compiler warnings
Change-Id: I6ebd403a3affae8bfbc5afee9d528664fb08122c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | examples/webenginewidgets/html2pdf/html2pdf.cpp | 8 | ||||
-rw-r--r-- | tests/auto/core/qwebengineurlrequestjob/tst_qwebengineurlrequestjob.cpp | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/examples/webenginewidgets/html2pdf/html2pdf.cpp b/examples/webenginewidgets/html2pdf/html2pdf.cpp index e767cf7db..1c9e5f607 100644 --- a/examples/webenginewidgets/html2pdf/html2pdf.cpp +++ b/examples/webenginewidgets/html2pdf/html2pdf.cpp @@ -8,9 +8,7 @@ #include <QWebEngineView> #include <functional> - -using namespace std; -using namespace std::placeholders; +#include <utility> class Html2PdfConverter : public QObject { @@ -30,8 +28,8 @@ private: }; Html2PdfConverter::Html2PdfConverter(QString inputPath, QString outputPath) - : m_inputPath(move(inputPath)) - , m_outputPath(move(outputPath)) + : m_inputPath(std::move(inputPath)) + , m_outputPath(std::move(outputPath)) , m_view(new QWebEngineView) { connect(m_view.data(), &QWebEngineView::loadFinished, diff --git a/tests/auto/core/qwebengineurlrequestjob/tst_qwebengineurlrequestjob.cpp b/tests/auto/core/qwebengineurlrequestjob/tst_qwebengineurlrequestjob.cpp index a1fd037bc..034bda291 100644 --- a/tests/auto/core/qwebengineurlrequestjob/tst_qwebengineurlrequestjob.cpp +++ b/tests/auto/core/qwebengineurlrequestjob/tst_qwebengineurlrequestjob.cpp @@ -67,6 +67,10 @@ protected: const QString &message, int lineNumber, const QString &sourceID) override { + Q_UNUSED(level); + Q_UNUSED(lineNumber); + Q_UNUSED(sourceID); + auto splitMessage = message.split(";"); if (splitMessage[0] == QString("TST_ADDITIONALRESPONSEHEADERS")) QCOMPARE(splitMessage[1], m_compareString); |