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]);
|
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",
|
return base::StringPrintf("#%02X%02X%02X",
|
||||||
SkColorGetR(color),
|
SkColorGetR(color),
|
||||||
SkColorGetG(color),
|
SkColorGetG(color),
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace atom {
|
||||||
SkColor ParseHexColor(const std::string& name);
|
SkColor ParseHexColor(const std::string& name);
|
||||||
|
|
||||||
// Convert color to RGB hex value like "#ABCDEF"
|
// Convert color to RGB hex value like "#ABCDEF"
|
||||||
std::string ToRGBHex(const SkColor color);
|
std::string ToRGBHex(SkColor color);
|
||||||
|
|
||||||
} // namespace atom
|
} // namespace atom
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue