15 |
|
|
16 |
inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue) |
inline void decodeRGBString(const std::string& rgb, int& red, int& green, int& blue) |
17 |
{ |
{ |
18 |
|
char check = 0; |
19 |
char *rend,*gend,*bend; |
char *rend,*gend,*bend; |
20 |
|
rend = gend = bend = ✓ |
21 |
|
|
22 |
int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16); |
int tmpred = strtol( rgb.substr(0,2).c_str(), &rend, 16); |
23 |
int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16); |
int tmpgreen = strtol( rgb.substr(2,2).c_str(), &rend, 16); |
24 |
int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16); |
int tmpblue = strtol( rgb.substr(4,2).c_str(), &rend, 16); |