diff --git a/clients/b2/b2client.h b/clients/b2/b2client.h index cceb888c87..4a3b2db8ed 100644 --- a/clients/b2/b2client.h +++ b/clients/b2/b2client.h @@ -36,7 +36,7 @@ class B2Button : public Q3Button { public: B2Button(B2Client *_client=0, QWidget *parent=0, const QString& tip=NULL, const int realizeBtns = Qt::LeftButton); - ~B2Button() {}; + ~B2Button() {} void setBg(const QColor &c){bg = c;} void setPixmaps(QPixmap *pix, QPixmap *pixDown, QPixmap *iPix, diff --git a/clients/web/Web.h b/clients/web/Web.h index 9d4c9b3ed6..c22ec2c62f 100644 --- a/clients/web/Web.h +++ b/clients/web/Web.h @@ -73,8 +73,8 @@ namespace Web public: - WebFactory() {}; - virtual ~WebFactory() {}; + WebFactory() {} + virtual ~WebFactory() {} virtual KDecoration* createDecoration( KDecorationBridge* ); virtual bool reset( unsigned long changed ); virtual bool supports( Ability ability ); diff --git a/kcmkwin/kwindecoration/buttons.h b/kcmkwin/kwindecoration/buttons.h index 9570add048..f38bf6a5eb 100644 --- a/kcmkwin/kwindecoration/buttons.h +++ b/kcmkwin/kwindecoration/buttons.h @@ -70,7 +70,7 @@ class ButtonDrag : public Q3StoredDrag { public: ButtonDrag( Button btn, QWidget* parent, const char* name=0 ); - ~ButtonDrag() {}; + ~ButtonDrag() {} static bool canDecode( QDropEvent* e ); static bool decode( QDropEvent* e, Button& btn ); diff --git a/lib/kdecoration.h b/lib/kdecoration.h index 9ad55a0878..9915f32662 100644 --- a/lib/kdecoration.h +++ b/lib/kdecoration.h @@ -175,7 +175,7 @@ class KDecorationProvides : public KDecorationDefines { public: - virtual ~KDecorationProvides(){}; + virtual ~KDecorationProvides(){} virtual bool provides( Requirement req ) = 0; }; diff --git a/lib/kdecoration_p.h b/lib/kdecoration_p.h index 2eb475eb24..fb9f7d78aa 100644 --- a/lib/kdecoration_p.h +++ b/lib/kdecoration_p.h @@ -60,7 +60,7 @@ class KWIN_EXPORT KDecorationOptionsPrivate : public KDecorationDefines class KDecorationBridge : public KDecorationDefines { public: - virtual ~KDecorationBridge(){}; + virtual ~KDecorationBridge(){} virtual bool isActive() const = 0; virtual bool isCloseable() const = 0; virtual bool isMaximizable() const = 0; diff --git a/utils.h b/utils.h index 98e7f285bc..0636218d02 100644 --- a/utils.h +++ b/utils.h @@ -260,22 +260,22 @@ inline bool compositing() { return scene != NULL; } #define KWIN_CHECK_PREDICATE( name, cls, check ) \ struct name \ { \ - inline bool operator()( const cls* cl ) { return check; }; \ + inline bool operator()( const cls* cl ) { return check; } \ } #define KWIN_COMPARE_PREDICATE( name, cls, type, check ) \ struct name \ { \ typedef type type_helper; /* in order to work also with type being 'const Client*' etc. */ \ - inline name( const type_helper& compare_value ) : value( compare_value ) {}; \ - inline bool operator()( const cls* cl ) { return check; }; \ + inline name( const type_helper& compare_value ) : value( compare_value ) {} \ + inline bool operator()( const cls* cl ) { return check; } \ const type_helper& value; \ } #define KWIN_PROCEDURE( name, cls, action ) \ struct name \ { \ - inline void operator()( cls* cl ) { action; }; \ + inline void operator()( cls* cl ) { action; } \ } KWIN_CHECK_PREDICATE( TruePredicate, Client, cl == cl /*true, avoid warning about 'cl' */ );