X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2FLogView%2Ffactory.cpp;h=aec63ae8866f307d6193d62bb0b275e9acecb12c;hb=refs%2Fheads%2Fmaster;hp=c4d5d093f90e09f9b84436b0fb49b8834487a9e7;hpb=0957525838e501a4609a15b8d7a765da43362025;p=evaf
diff --git a/src/plugins/LogView/factory.cpp b/src/plugins/LogView/factory.cpp
index c4d5d09..aec63ae 100644
--- a/src/plugins/LogView/factory.cpp
+++ b/src/plugins/LogView/factory.cpp
@@ -3,7 +3,7 @@
* @brief LogView module's factory class
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -19,7 +19,6 @@
#include "factory.h"
#include "logview.h"
-#include "version.h"
#include
@@ -28,14 +27,13 @@
using namespace eVaf::LogView;
VER_EXPORT_VERSION_INFO()
-Q_EXPORT_PLUGIN2(VER_MODULE_NAME_STR, Factory)
//-------------------------------------------------------------------
Factory::Factory()
: Plugins::iPluginFactory()
- , mPlugin(0)
+ , mPlugin(nullptr)
{
setObjectName(QString("%1-Factory").arg(VER_MODULE_NAME_STR));
@@ -52,9 +50,9 @@ Factory::~Factory()
QObject * Factory::create(QString const & name)
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
- if (mPlugin == 0)
+ if (mPlugin == nullptr)
mPlugin = new Internal::Module;
return mPlugin;
}