[libcalamares] Apply coding style to PluginFactory

This commit is contained in:
Adriaan de Groot 2019-08-13 20:50:52 +02:00
parent ccd707b23a
commit f31ff8b9ea
2 changed files with 22 additions and 20 deletions

View File

@ -6,6 +6,4 @@
#include "PluginFactory.h" #include "PluginFactory.h"
CalamaresPluginFactory::~CalamaresPluginFactory() CalamaresPluginFactory::~CalamaresPluginFactory() {}
{
}

View File

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