Remove const since SkColor is an int

This commit is contained in:
Kevin Sawicki 2016-10-11 09:38:17 -07:00
parent c8189046fe
commit ce694760bc
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ SkColor ParseHexColor(const std::string& color_string) {
return SkColorSetARGB(bytes[0], bytes[1], bytes[2], bytes[3]);
}
std::string ToRGBHex(const SkColor color) {
std::string ToRGBHex(SkColor color) {
return base::StringPrintf("#%02X%02X%02X",
SkColorGetR(color),
SkColorGetG(color),

View file

@ -15,7 +15,7 @@ namespace atom {
SkColor ParseHexColor(const std::string& name);
// Convert color to RGB hex value like "#ABCDEF"
std::string ToRGBHex(const SkColor color);
std::string ToRGBHex(SkColor color);
} // namespace atom