]> git.stg.codes - stg.git/commitdiff
code correction: removal spaces
authorNaffanya <naffanya@naffanya.(none)>
Fri, 28 Jun 2013 21:47:06 +0000 (00:47 +0300)
committerNaffanya <naffanya@naffanya.(none)>
Fri, 28 Jun 2013 21:47:06 +0000 (00:47 +0300)
projects/stargazer/main.cpp
projects/stargazer/settings_impl.cpp
projects/stargazer/settings_impl.h

index 09f0970f9fdb57dcc3a9ba99e301ca0b2347a82c..c2134f4906860f25d82a532e4f34e341736e0bb8 100644 (file)
@@ -264,8 +264,10 @@ else
 if (settings->ReadSettings())
     {
     STG_LOGGER & WriteServLog = GetStgLogger();
+
     if (settings->GetLogFileName() != "")
         WriteServLog.SetLogFileName(settings->GetLogFileName());
+    
     WriteServLog("ReadSettings error. %s", settings->GetStrError().c_str());
     exit(1);
     }
index 8511794cddc512a2be0bea12d0264ddca9a5df55..92670cb5082a345768582a2173ce06803fa0d43f 100644 (file)
@@ -243,7 +243,7 @@ while (node)
         {
         rules = node->getValue(0);
         }
-       
+
     if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0)
         {
         if (ParseDetailStatWritePeriod(node->getValue(0)) != 0)
@@ -457,13 +457,13 @@ while (node)
             }
         }
 
-        if (strcasecmp(node->getName(), "ScriptParams") == 0)
+    if (strcasecmp(node->getName(), "ScriptParams") == 0)
+        {
+        for (int i = 0; node->getValue(i) != NULL; ++i)
             {
-            for (int i = 0; node->getValue(i) != NULL; ++i)
-                {
-                scriptParams.push_back(node->getValue(i));
-                }
+            scriptParams.push_back(node->getValue(i));
             }
+        }
     node = node->getNextNode();
     }
 
index 7dc742f52f42e0243bcd11e65bc800663e574b42..7ba2708fd7ae6aace5260277b5421140918a2c4c 100644 (file)
@@ -97,7 +97,7 @@ public:
     const MODULE_SETTINGS & GetStoreModuleSettings() const
         { return storeModuleSettings; }
     const std::vector<MODULE_SETTINGS> & GetModulesSettings() const
-        { return modulesSettings; }                
+        { return modulesSettings; }
     const std::vector<std::string> & GetScriptParams() const { return scriptParams; }
 
 private:
@@ -117,7 +117,7 @@ private:
     std::string rules;
     std::string logFile;
     std::string pidFile;
-    std::string monitorDir;        
+    std::string monitorDir;
     std::vector<std::string> scriptParams;
     bool        monitoring;
     unsigned    detailStatWritePeriod;
@@ -137,7 +137,7 @@ private:
     bool        reconnectOnTariffChange;
 
     std::vector<MODULE_SETTINGS> modulesSettings;
-    MODULE_SETTINGS storeModuleSettings;    
+    MODULE_SETTINGS storeModuleSettings;
     STG_LOGGER & logger;
 };
 //-----------------------------------------------------------------------------