]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/files/file_store.cpp
В класс CONFIGFILE добавлена поддержка отказа от записи
[stg.git] / projects / stargazer / plugins / store / files / file_store.cpp
index 5a61eea4a093bf6cf06396c94b3650abab4c6279..630dfdef54ff3d88e48100091949fc6cdfd78f40 100644 (file)
@@ -1507,15 +1507,15 @@ return 0;
 //-----------------------------------------------------------------------------
 int FILES_STORE::RestoreTariff(TARIFF_DATA * td, const string & tariffName) const
 {
-string tariffFileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
-CONFIGFILE conf(tariffFileName);
+string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
+CONFIGFILE conf(fileName);
 string str;
 td->tariffConf.name = tariffName;
 
 if (conf.Error() != 0)
     {
     STG_LOCKER lock(&mutex, __FILE__, __LINE__);
-    errorStr = "Cannot read file " + tariffFileName;
+    errorStr = "Cannot read file " + fileName;
     printfd(__FILE__, "FILES_STORE::RestoreTariff - failed to read tariff '%s'\n", tariffName.c_str());
     return -1;
     }