Remove const since SkColor is an int
This commit is contained in:
parent
c8189046fe
commit
ce694760bc
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue