- Timestamp:
- Aug 8, 2009, 8:23:22 PM (13 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Configuration.cc
r768 r815 58 58 else 59 59 iter->second.push_back(p); 60 } 61 62 63 std::string Configuration::author_str_color(const std::string& author) const 64 { 65 std::string res; 66 std::map<std::string, std::string>::const_iterator iterator; 67 if ( (iterator=author_color_.find(author)) != author_color_.end()) 68 res = iterator->second; 69 return res; 60 70 } 61 71 -
trunk/lib/Configuration.h
r768 r815 43 43 public: 44 44 static Configuration& instance(void); 45 46 /** 47 \return hexadecimal color code (e.g. 5aee4a) that is used in 48 blame output. If no color is configured for \a author, an empty 49 string is returned. 50 */ 51 std::string author_str_color(const std::string& author) const; 45 52 46 53 /** … … 117 124 static Configuration* instance_; 118 125 126 std::map<std::string, std::string> author_color_; 119 127 std::map<std::string, Alias> copyright_alias_; 120 128
Note: See TracChangeset
for help on using the changeset viewer.