[libcalamares] Apply coding style to PluginFactory
This commit is contained in:
parent
ccd707b23a
commit
f31ff8b9ea
@ -6,6 +6,4 @@
|
|||||||
|
|
||||||
#include "PluginFactory.h"
|
#include "PluginFactory.h"
|
||||||
|
|
||||||
CalamaresPluginFactory::~CalamaresPluginFactory()
|
CalamaresPluginFactory::~CalamaresPluginFactory() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -44,7 +44,10 @@ class CalamaresPluginFactory : public KPluginFactory
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit CalamaresPluginFactory() : KPluginFactory() {}
|
explicit CalamaresPluginFactory()
|
||||||
|
: KPluginFactory()
|
||||||
|
{
|
||||||
|
}
|
||||||
~CalamaresPluginFactory() override;
|
~CalamaresPluginFactory() override;
|
||||||
|
|
||||||
/** @brief Create an object from the factory.
|
/** @brief Create an object from the factory.
|
||||||
@ -58,7 +61,8 @@ public:
|
|||||||
Q_UNUSED( parentWidget );
|
Q_UNUSED( parentWidget );
|
||||||
Q_UNUSED( args );
|
Q_UNUSED( args );
|
||||||
ParentType* p = nullptr;
|
ParentType* p = nullptr;
|
||||||
if (parent) {
|
if ( parent )
|
||||||
|
{
|
||||||
p = qobject_cast< ParentType* >( parent );
|
p = qobject_cast< ParentType* >( parent );
|
||||||
Q_ASSERT( p );
|
Q_ASSERT( p );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user