From f3fbc3665b4c1fa3e203ea5b363689effc40f69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arto=20Hyt=C3=B6nen?= Date: Sun, 2 Sep 2007 19:11:09 +0000 Subject: [PATCH] explicit ctors svn path=/trunk/KDE/kdebase/workspace/; revision=707717 --- clients/b2/b2client.h | 2 +- clients/kwmtheme/kwmthemeclient.h | 2 +- clients/oxygen/oxygenbutton.h | 2 +- effects/presentwindows_config.h | 2 +- effects/shadow_config.h | 2 +- kcmkwin/kwindecoration/buttons.h | 4 ++-- kcmkwin/kwinrules/detectwidget.h | 2 +- kcmkwin/kwinrules/ruleswidget.h | 2 +- lib/kwinglutils.h | 4 ++-- popupinfo.h | 2 +- tools/decobenchmark/preview.h | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/clients/b2/b2client.h b/clients/b2/b2client.h index 7327d944a4..dd0ed23e27 100644 --- a/clients/b2/b2client.h +++ b/clients/b2/b2client.h @@ -35,7 +35,7 @@ class B2Client; class B2Button : public QAbstractButton { public: - B2Button(B2Client *_client=0, QWidget *parent=0, const QString& tip=NULL, const int realizeBtns = Qt::LeftButton); + explicit B2Button(B2Client *_client=0, QWidget *parent=0, const QString& tip=NULL, const int realizeBtns = Qt::LeftButton); ~B2Button() {} void setBg(const QColor &c){bg = c;} diff --git a/clients/kwmtheme/kwmthemeclient.h b/clients/kwmtheme/kwmthemeclient.h index 68fde47f35..34ed8421ff 100644 --- a/clients/kwmtheme/kwmthemeclient.h +++ b/clients/kwmtheme/kwmthemeclient.h @@ -15,7 +15,7 @@ namespace KWMTheme { class MyButton : public QToolButton { public: - MyButton(QWidget *parent=0, const char *name=0) + explicit MyButton(QWidget *parent=0, const char *name=0) : QToolButton(parent, name){setAutoRaise(true);setCursor( arrowCursor ); } protected: void drawButtonLabel(QPainter *p); diff --git a/clients/oxygen/oxygenbutton.h b/clients/oxygen/oxygenbutton.h index 45dd42248d..4d94033517 100644 --- a/clients/oxygen/oxygenbutton.h +++ b/clients/oxygen/oxygenbutton.h @@ -45,7 +45,7 @@ Q_DECLARE_FLAGS(ButtonState, ButtonStatus) class OxygenButton : public QAbstractButton { public: - OxygenButton(OxygenClient *parent=0, + explicit OxygenButton(OxygenClient *parent=0, const QString &tip=NULL, ButtonType type=ButtonHelp, const unsigned char *bitmap=0); diff --git a/effects/presentwindows_config.h b/effects/presentwindows_config.h index faae21c500..cb51d01b71 100644 --- a/effects/presentwindows_config.h +++ b/effects/presentwindows_config.h @@ -25,7 +25,7 @@ class PresentWindowsEffectConfig : public KCModule { Q_OBJECT public: - PresentWindowsEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList()); + explicit PresentWindowsEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList()); ~PresentWindowsEffectConfig(); virtual void save(); diff --git a/effects/shadow_config.h b/effects/shadow_config.h index 4a82cf45b4..f8025c2093 100644 --- a/effects/shadow_config.h +++ b/effects/shadow_config.h @@ -25,7 +25,7 @@ class ShadowEffectConfig : public KCModule { Q_OBJECT public: - ShadowEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList()); + explicit ShadowEffectConfig(QWidget* parent = 0, const QStringList& args = QStringList()); ~ShadowEffectConfig(); virtual void save(); diff --git a/kcmkwin/kwindecoration/buttons.h b/kcmkwin/kwindecoration/buttons.h index f38bf6a5eb..e0715624ee 100644 --- a/kcmkwin/kwindecoration/buttons.h +++ b/kcmkwin/kwindecoration/buttons.h @@ -150,7 +150,7 @@ class ButtonDropSite: public QFrame Q_OBJECT public: - ButtonDropSite( QWidget* parent=0, const char* name=0 ); + explicit ButtonDropSite( QWidget* parent=0, const char* name=0 ); ~ButtonDropSite(); // Allow external classes access our buttons - ensure buttons are @@ -203,7 +203,7 @@ class ButtonPositionWidget : public QWidget Q_OBJECT public: - ButtonPositionWidget(QWidget *parent = 0, const char* name = 0); + explicit ButtonPositionWidget(QWidget *parent = 0, const char* name = 0); ~ButtonPositionWidget(); /** diff --git a/kcmkwin/kwinrules/detectwidget.h b/kcmkwin/kwinrules/detectwidget.h index c92a41bf84..ea6319225b 100644 --- a/kcmkwin/kwinrules/detectwidget.h +++ b/kcmkwin/kwinrules/detectwidget.h @@ -55,7 +55,7 @@ class DetectDialog { Q_OBJECT public: - DetectDialog( QWidget* parent = NULL, const char* name = NULL ); + explicit DetectDialog( QWidget* parent = NULL, const char* name = NULL ); void detect( WId window ); QByteArray selectedClass() const; bool selectedWholeClass() const; diff --git a/kcmkwin/kwinrules/ruleswidget.h b/kcmkwin/kwinrules/ruleswidget.h index a1f4943486..b0905fca3d 100644 --- a/kcmkwin/kwinrules/ruleswidget.h +++ b/kcmkwin/kwinrules/ruleswidget.h @@ -99,7 +99,7 @@ class RulesDialog { Q_OBJECT public: - RulesDialog( QWidget* parent = NULL, const char* name = NULL ); + explicit RulesDialog( QWidget* parent = NULL, const char* name = NULL ); Rules* edit( Rules* r, WId window, bool show_hints ); protected: virtual void accept(); diff --git a/lib/kwinglutils.h b/lib/kwinglutils.h index ed9eab3ad0..5840e960b6 100644 --- a/lib/kwinglutils.h +++ b/lib/kwinglutils.h @@ -99,8 +99,8 @@ class KWIN_EXPORT GLTexture { public: GLTexture(); - GLTexture( const QImage& image, GLenum target = GL_TEXTURE_2D ); - GLTexture( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D ); + explicit GLTexture( const QImage& image, GLenum target = GL_TEXTURE_2D ); + explicit GLTexture( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D ); GLTexture( const QString& fileName ); GLTexture( int width, int height ); virtual ~GLTexture(); diff --git a/popupinfo.h b/popupinfo.h index 75ea9fd907..90262c3b21 100644 --- a/popupinfo.h +++ b/popupinfo.h @@ -23,7 +23,7 @@ class PopupInfo : public QWidget { Q_OBJECT public: - PopupInfo( Workspace* ws, const char *name=0 ); + explicit PopupInfo( Workspace* ws, const char *name=0 ); ~PopupInfo(); void reset(); diff --git a/tools/decobenchmark/preview.h b/tools/decobenchmark/preview.h index a47731b6de..460fadcc8a 100644 --- a/tools/decobenchmark/preview.h +++ b/tools/decobenchmark/preview.h @@ -32,7 +32,7 @@ class KDecorationPreview : public QWidget { public: - KDecorationPreview( KDecorationPlugins* plugin, QWidget* parent = NULL, const char* name = NULL ); + explicit KDecorationPreview( KDecorationPlugins* plugin, QWidget* parent = NULL, const char* name = NULL ); virtual ~KDecorationPreview(); void performRepaintTest(int n);