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 <Friedemann.Kleint@nokia.com>
This commit is contained in:
Marc Mutz 2012-03-06 22:44:55 +01:00 committed by Qt by Nokia
parent 12f221410f
commit c614bf25fe
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class Q_PRINTSUPPORT_EXPORT QUnixPrintWidget : public QWidget
Q_OBJECT
public:
QUnixPrintWidget(QPrinter *printer, QWidget *parent = 0);
explicit QUnixPrintWidget(QPrinter *printer, QWidget *parent = 0);
~QUnixPrintWidget();
void updatePrinter();

View File

@ -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;