From ce694760bc8d6265f1a336f972558955ec5bf570 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 11 Oct 2016 09:38:17 -0700 Subject: [PATCH] Remove const since SkColor is an int --- atom/common/color_util.cc | 2 +- atom/common/color_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/common/color_util.cc b/atom/common/color_util.cc index 726bc10a1830..4df25d184e84 100644 --- a/atom/common/color_util.cc +++ b/atom/common/color_util.cc @@ -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), diff --git a/atom/common/color_util.h b/atom/common/color_util.h index e1b1fc44475b..1186803c7648 100644 --- a/atom/common/color_util.h +++ b/atom/common/color_util.h @@ -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