From 91b4249ea708dca9c344407621fa4814f59818ce Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Wed, 8 Feb 2023 12:38:10 +0100 Subject: Fix clang compiler warnings Change-Id: I6ebd403a3affae8bfbc5afee9d528664fb08122c Reviewed-by: Allan Sandfeld Jensen --- examples/webenginewidgets/html2pdf/html2pdf.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') 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 #include - -using namespace std; -using namespace std::placeholders; +#include 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, -- cgit v1.2.1