Changeset 569a179 in nscp for include/settings


Ignore:
Timestamp:
03/09/11 21:21:25 (2 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
7443b58
Parents:
7e54a5f
Message:

0.4.x: fixed some more old settings mappings and handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/settings/settings_old.hpp

    r7e54a5f r569a179  
    6060      std::pair<std::wstring,std::wstring> new_key = split_key(line.substr(pos+1)); 
    6161      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); 
    6463      } else { 
    6564        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); 
    6765      } 
    6866 
     
    8482    key_map keys_; 
    8583    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); 
    8685      sections_[path_new] = path_old; 
    8786    } 
     
    9594      if (it == sections_.end()) 
    9695        return path_new; 
    97       //get_core()->get_logger()->debug(__FILE__, __LINE__, _T("Mapping: ") + path_new + _T(" to ") + (*it).second); 
    9896      return (*it).second; 
    9997    } 
     
    345343          get_core()->get_logger()->debug(__FILE__, __LINE__, std::wstring(_T("=============>>>>>>>>>>>")) + key.first + _T(" >>>> ") + key.second); 
    346344          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); 
    348346            section_cache_[path] = list; 
    349347            it = section_cache_.find(path); 
Note: See TracChangeset for help on using the changeset viewer.