X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FPswGen%2FCLI%2Fcli.cpp;h=b27fa8a712b905d92f7d7c3383b21493991c5c36;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=2d2ca1cd55a9b0067acf0073610e65adac82f193;hpb=4a845c9a4d543528ab0284835c84c3f4e0bf7b25;p=evaf
diff --git a/src/apps/PswGen/CLI/cli.cpp b/src/apps/PswGen/CLI/cli.cpp
index 2d2ca1c..b27fa8a 100644
--- a/src/apps/PswGen/CLI/cli.cpp
+++ b/src/apps/PswGen/CLI/cli.cpp
@@ -3,7 +3,7 @@
* @brief Command line interface for the PswGen application
* @author Enar Vaikene
*
- * Copyright (c) 2011-2012 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -53,8 +53,8 @@ int const Module::DefaultPasswordLength = 16;
Module::Module()
: Plugins::iPlugin()
, mReady(false)
- , mGenerator(0)
- , mStorage(0)
+ , mGenerator(nullptr)
+ , mStorage(nullptr)
, mEvReady(0)
{
setObjectName(QString("%1-Module").arg(VER_MODULE_NAME_STR));
@@ -68,10 +68,10 @@ Module::~Module()
bool Module::init(QString const & args)
{
- Q_UNUSED(args);
+ Q_UNUSED(args)
// Get the iGenerator interface
- EVAF_TEST_X((mGenerator = evafQueryInterface("iGenerator")), "No iGenerator interface");
+ EVAF_TEST_X((mGenerator = evafQueryInterface("iGenerator")), "No iGenerator interface")
// Get the optional iStorage interface
mStorage = evafQueryInterface("iStorage");
@@ -80,10 +80,10 @@ bool Module::init(QString const & args)
// Get the iEventQueue interface and subscribe to the 'ready' event
Common::iEventQueue * eventQueue = evafQueryInterface("iEventQueue");
- EVAF_TEST_X(eventQueue, "No iEventQueue interface");
+ EVAF_TEST_X(eventQueue, "No iEventQueue interface")
// Subscribe to the 'ready' event
- EVAF_TEST_X((mEvReady = eventQueue->subscribeEvent(eventQueue->queryEvent(Common::iApp::EV_READY), this)), "No 'ready' event");
+ EVAF_TEST_X((mEvReady = eventQueue->subscribeEvent(eventQueue->queryEvent(Common::iApp::EV_READY), this)), "No 'ready' event")
mReady = true;