* @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.
*
#include "factory.h"
#include "logview.h"
-#include "version.h"
#include <Common/iLogger>
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));
QObject * Factory::create(QString const & name)
{
- Q_UNUSED(name);
+ Q_UNUSED(name)
- if (mPlugin == 0)
+ if (mPlugin == nullptr)
mPlugin = new Internal::Module;
return mPlugin;
}