- Timestamp:
- Dec 3, 2009, 7:21:30 AM (13 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Colors.cc
r941 r942 113 113 if (hex>64 && hex<71) // A--F 114 114 return hex-55; 115 std::ostringstream ss; 116 ss << static_cast<char>(hex) << " is not hexadecimal"; 117 throw std::runtime_error(ss.str()); 115 118 return -1; 116 119 } -
trunk/lib/Configuration.cc
r928 r942 22 22 #include "Configuration.h" 23 23 24 #include "Colors.h" 24 25 #include "Functor.h" 25 26 … … 193 194 } 194 195 else if (section == "author-color") { 196 unsigned char r,g,b; 197 try { 198 str2rgb(rhs, r,g,b); 199 } 200 catch (std::runtime_error& e) { 201 throw Config_error(line, e.what()); 202 } 195 203 author_color_[lhs] = rhs; 196 204 }
Note: See TracChangeset
for help on using the changeset viewer.