X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Flibs%2FCommon%2Fglobals.cpp;h=63d4bce2bd6c3a988c333459d3e42220fb56957d;hb=be0e791df48f5a8c9bb4c16f65b62e41e1149552;hp=e494908e5f64a48ac86c9b030b08adb5c39c4b78;hpb=77caaebac175110f337767d4b7422bdaa6b7ac1f;p=evaf
diff --git a/src/libs/Common/globals.cpp b/src/libs/Common/globals.cpp
index e494908..63d4bce 100644
--- a/src/libs/Common/globals.cpp
+++ b/src/libs/Common/globals.cpp
@@ -18,7 +18,6 @@
*/
#include "globals.h"
-#include "env.h"
#include "app.h"
#include "logger.h"
#include "version.h"
@@ -40,10 +39,10 @@ bool eVaf::Common::init()
// Initialize all the common interface implementations in the proper sequence
- eVaf::Common::Internal::Env * env =
- qobject_cast(eVaf::Common::iEnv::instance());
- if (env) {
- if (!env->init())
+ eVaf::Common::Internal::App * app =
+ qobject_cast(eVaf::Common::iApp::instance());
+ if (app) {
+ if (!app->init())
return false;
}
eVaf::Common::Internal::Logger * logger =
@@ -52,12 +51,6 @@ bool eVaf::Common::init()
if (!logger->init())
return false;
}
- eVaf::Common::Internal::App * app =
- qobject_cast(eVaf::Common::iApp::instance());
- if (app) {
- if (!app->init())
- return false;
- }
EVAF_INFO("%s-Globals initialized", VER_MODULE_NAME_STR);