Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-11-09 17:01:58 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:27:30 +0300
commit3cd091ed79859e4adabee7369001a7bc3345d5d4 (patch)
tree40d10adc114abe9aaf4bac747510289ee6b115cc /generator
parentb83905901edb55c856d633a673079c8ed89e564b (diff)
Replaced ineffective char const * with string const &
Diffstat (limited to 'generator')
-rw-r--r--generator/classif_routine.cpp2
-rw-r--r--generator/data_cache_file.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/generator/classif_routine.cpp b/generator/classif_routine.cpp
index 2f62ffd2ef..db765038f9 100644
--- a/generator/classif_routine.cpp
+++ b/generator/classif_routine.cpp
@@ -92,7 +92,7 @@ namespace classificator
for (int i = 0; i <= 17; ++i)
ftype::ParseOSMTypes(inFile.c_str(), i);
- drule::WriteRules(string(path + "drawing_rules.bin").c_str());
+ drule::WriteRules(string(path + "drawing_rules.bin"));
classif().PrintClassificator(string(path + "classificator.txt").c_str());
}
diff --git a/generator/data_cache_file.hpp b/generator/data_cache_file.hpp
index 74f50502e9..f3aadc773c 100644
--- a/generator/data_cache_file.hpp
+++ b/generator/data_cache_file.hpp
@@ -136,7 +136,7 @@ namespace cache
public:
DataFileBase(string const & name)
- : m_stream(name.c_str()), m_offsets(name + OFFSET_EXT)
+ : m_stream(name), m_offsets(name + OFFSET_EXT)
{
}
};