diff options
-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); |