From ae50ef270bd5add9a0b79c7120dce4c63ae8f731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 23 Aug 2013 12:11:25 +0200 Subject: [PATCH] Make KDecorationFactory ctor protected It's not supposed to be invoked directly, but always through a subclass. --- libkdecorations/kdecorationfactory.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libkdecorations/kdecorationfactory.h b/libkdecorations/kdecorationfactory.h index 7b40f93fe2..d5d8f64b15 100644 --- a/libkdecorations/kdecorationfactory.h +++ b/libkdecorations/kdecorationfactory.h @@ -39,11 +39,6 @@ class KWIN_EXPORT KDecorationFactory { Q_OBJECT public: - /** - * Constructor. Called after loading the decoration plugin. All global - * initialization of the plugin should be done in the factory constructor. - */ - explicit KDecorationFactory(QObject *parent = nullptr); /** * Destructor. Called before unloading the decoration plugin. All global * cleanup of the plugin should be done in the factory destructor. @@ -113,6 +108,11 @@ public: */ void removeDecoration(KDecoration*); protected: + /** + * Constructor. Called after loading the decoration plugin. All global + * initialization of the plugin should be done in the factory constructor. + */ + explicit KDecorationFactory(QObject *parent = nullptr); /** * Convenience function that calls KDecoration::reset() for all decoration * objects.