From c614bf25fef7e5a0e0fc7d74980f48a471b4406f Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 6 Mar 2012 22:44:55 +0100 Subject: QtPrintSupport: make some constructors explicit This is a semi-automatic search, so I'm reasonably sure that all the exported ones have been caught. Change-Id: Ic65f21e06fb2c5d851390cd025c2a48db51f5930 Reviewed-by: Friedemann Kleint --- src/printsupport/kernel/qprinterinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/printsupport/kernel/qprinterinfo.h') diff --git a/src/printsupport/kernel/qprinterinfo.h b/src/printsupport/kernel/qprinterinfo.h index 64903bee85..d26b70dee0 100644 --- a/src/printsupport/kernel/qprinterinfo.h +++ b/src/printsupport/kernel/qprinterinfo.h @@ -59,7 +59,7 @@ class Q_PRINTSUPPORT_EXPORT QPrinterInfo public: QPrinterInfo(); QPrinterInfo(const QPrinterInfo &other); - QPrinterInfo(const QPrinter &printer); + explicit QPrinterInfo(const QPrinter &printer); ~QPrinterInfo(); QPrinterInfo &operator=(const QPrinterInfo &other); @@ -73,7 +73,7 @@ public: static QPrinterInfo defaultPrinter(); private: - QPrinterInfo(const QString &name); + explicit QPrinterInfo(const QString &name); private: friend class QPlatformPrinterSupport; -- cgit v1.2.3