Changeset 569a179 in nscp for include/settings
- Timestamp:
- 03/09/11 21:21:25 (2 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 7443b58
- Parents:
- 7e54a5f
- File:
-
- 1 edited
-
include/settings/settings_old.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/settings/settings_old.hpp
r7e54a5f r569a179 60 60 std::pair<std::wstring,std::wstring> new_key = split_key(line.substr(pos+1)); 61 61 if (old_key.second == _T("*") || old_key.second.empty()) { 62 add_mapping(new_key.first, old_key.first); 63 get_logger()->debug(__FILE__, __LINE__, _T("Adding: ") + old_key.first + _T(" >> ") + new_key.first); 62 add_mapping(line.substr(pos+1), old_key.first); 64 63 } else { 65 64 add_mapping(new_key.first, new_key.second, old_key.first, old_key.second); 66 get_logger()->debug(__FILE__, __LINE__, _T("Adding: ") + old_key.first + _T(":") + old_key.second + _T(" >> ") + new_key.first + _T(":") + new_key.second);67 65 } 68 66 … … 84 82 key_map keys_; 85 83 void add_mapping(std::wstring path_new, std::wstring path_old) { 84 get_core()->get_logger()->debug(__FILE__, __LINE__, _T("Mapping: ") + path_new + _T(" to ") + path_old); 86 85 sections_[path_new] = path_old; 87 86 } … … 95 94 if (it == sections_.end()) 96 95 return path_new; 97 //get_core()->get_logger()->debug(__FILE__, __LINE__, _T("Mapping: ") + path_new + _T(" to ") + (*it).second);98 96 return (*it).second; 99 97 } … … 345 343 get_core()->get_logger()->debug(__FILE__, __LINE__, std::wstring(_T("=============>>>>>>>>>>>")) + key.first + _T(" >>>> ") + key.second); 346 344 if (it == section_cache_.end()) { 347 std::set<std::wstring> list = internal_read_keys_from_section( path);345 std::set<std::wstring> list = internal_read_keys_from_section(key.second); 348 346 section_cache_[path] = list; 349 347 it = section_cache_.find(path);
Note: See TracChangeset
for help on using the changeset viewer.








