summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2023-02-08 12:38:10 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2023-02-14 07:59:13 +0000
commit91b4249ea708dca9c344407621fa4814f59818ce (patch)
tree8bbc9e1179f3acec56e5ba79fddb48c47e580d8d /examples
parent901a6b98b1c2eaf79a0b0e4082ac0703e28794e2 (diff)
downloadqtwebengine-91b4249ea708dca9c344407621fa4814f59818ce.tar.gz
Fix clang compiler warnings
Change-Id: I6ebd403a3affae8bfbc5afee9d528664fb08122c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginewidgets/html2pdf/html2pdf.cpp8
1 files changed, 3 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,