diff options
author | vng <viktor.govako@gmail.com> | 2011-07-03 21:16:43 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:20:30 +0300 |
commit | ae88aa1971d63e506ba54000dc3aa53135534eb2 (patch) | |
tree | f96aa393b5385ff30707a484e88f455cbe69bf4f /generator/statistics.cpp | |
parent | adde2107d1effebd18358b60bc190c7bd4e5d75b (diff) |
[Refactoring] Use mwm-file descriptor (string name) in Index. Open FileReader only when necessary.
Diffstat (limited to 'generator/statistics.cpp')
-rw-r--r-- | generator/statistics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/statistics.cpp b/generator/statistics.cpp index be4a07f761..c0f85e3583 100644 --- a/generator/statistics.cpp +++ b/generator/statistics.cpp @@ -17,9 +17,9 @@ using namespace feature; namespace stats { - void FileContainerStatistic(string const & fName) + void FileContainerStatistic(string const & fPath) { - FilesContainerR cont(fName); + FilesContainerR cont(fPath); vector<string> tags; tags.push_back(DATA_FILE_TAG); @@ -79,10 +79,10 @@ namespace stats } }; - void CalcStatistic(string const & fName, MapInfo & info) + void CalcStatistic(string const & fPath, MapInfo & info) { AccumulateStatistic doProcess(info); - feature::ForEachFromDat(new FileReader(fName), doProcess); + feature::ForEachFromDat(fPath, doProcess); } void PrintInfo(char const * prefix, GeneralInfo const & info) |