]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/env.cpp
Moved eVaf description to the main page on the Doxygen generated documentation.
[evaf] / src / libs / Common / env.cpp
index 55b133ed3814a10fcbd79879b8601b2223ec40b6..e0c08348628741c1723d31a2b694ebfbd6a26eee 100644 (file)
@@ -33,7 +33,7 @@ using namespace eVaf::Common;
 
 iEnv * iEnv::instance()
 {
-    static Internal::Env singleton;
+    static eVaf::Common::Internal::Env singleton;
     return &singleton;
 }
 
@@ -46,6 +46,16 @@ Env::Env()
     : iEnv()
 {
     setObjectName(QString("%1-iEnv").arg(VER_MODULE_NAME_STR));
+}
+
+Env::~Env()
+{
+}
+
+bool Env::init()
+{
+    // Register out interface
+    iRegistry::instance()->registerInterface("iEnv", this);
 
     // Set initial bin and root directories
     mRootDir = mBinDir = qApp->applicationDirPath();
@@ -57,18 +67,8 @@ Env::Env()
         mBinDir.append('/');
     if (!mRootDir.endsWith('/'))
         mRootDir.append('/');
-}
-
-Env::~Env()
-{
-}
-
-bool Env::init()
-{
-    // Register out interface
-    iRegistry::instance()->registerInterface("iEnv", this);
 
-    // Clear directories
+    // Clear other directories
     mDataRootDir.clear();
     mQtPluginsDir.clear();
     mEtcDir.clear();