forked from organicmaps/organicmaps
Review fix
This commit is contained in:
parent
e4f39bec79
commit
0aa1e114ce
2 changed files with 8 additions and 5 deletions
|
@ -97,12 +97,16 @@ int main(int argc, char ** argv)
|
|||
}
|
||||
|
||||
feature::GenerateInfo genInfo;
|
||||
genInfo.m_intermediateDir = FLAGS_intermediate_data_path.empty() ? path : my::AddSlashIfNeeded(FLAGS_intermediate_data_path);
|
||||
genInfo.m_intermediateDir = FLAGS_intermediate_data_path.empty()
|
||||
? path
|
||||
: my::AddSlashIfNeeded(FLAGS_intermediate_data_path);
|
||||
genInfo.m_targetDir = genInfo.m_tmpDir = path;
|
||||
|
||||
if (!FLAGS_intermediate_data_path.empty()) {
|
||||
genInfo.m_tmpDir = genInfo.m_intermediateDir + "tmp/";
|
||||
pl.MkDir(genInfo.m_tmpDir);
|
||||
if (!FLAGS_intermediate_data_path.empty())
|
||||
{
|
||||
string tmpPath = my::JoinFoldersToPath({genInfo.m_intermediateDir, "tmp"}, string());
|
||||
if (pl.MkDir(genInfo.m_tmpDir) == Platform::ERR_OK)
|
||||
genInfo.m_tmpDir = tmpPath;
|
||||
}
|
||||
|
||||
// load classificator only if necessary
|
||||
|
|
|
@ -153,7 +153,6 @@ namespace feature
|
|||
if (country->m_index == -1)
|
||||
{
|
||||
m_Names.push_back(country->m_name);
|
||||
LOG(LINFO, ("Output country file:", m_prefix + country->m_name + m_suffix));
|
||||
m_Buckets.push_back(new FeatureOutT(m_prefix + country->m_name + m_suffix));
|
||||
country->m_index = m_Buckets.size()-1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue