summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorPhilippe Leybaert <philippe@activa.be>2016-10-20 13:23:47 -0500
committerJason Smith <jason.smith@xamarin.com>2016-10-20 11:23:47 -0700
commit76c374f56bf41eae53d8df05d11db659dc825be1 (patch)
tree7ccc0916b8d797d225e27c18381bb0d8993f49be /Xamarin.Forms.Core
parenta047ab48faf466bf66f1c80216c922de42eeb463 (diff)
downloadxamarin-forms-76c374f56bf41eae53d8df05d11db659dc825be1.tar.gz
xamarin-forms-76c374f56bf41eae53d8df05d11db659dc825be1.tar.bz2
xamarin-forms-76c374f56bf41eae53d8df05d11db659dc825be1.zip
Remove unnecessary string replace in Color.FromHex (#477)
In Color.FromHex(), the ‘#’ character is stripped from the input string twice.
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Color.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Color.cs b/Xamarin.Forms.Core/Color.cs
index deb0f4f9..526489d4 100644
--- a/Xamarin.Forms.Core/Color.cs
+++ b/Xamarin.Forms.Core/Color.cs
@@ -311,7 +311,7 @@ namespace Xamarin.Forms
hex = string.Format("ff{0}", hex);
break;
}
- return FromUint(Convert.ToUInt32(hex.Replace("#", ""), 16));
+ return FromUint(Convert.ToUInt32(hex, 16));
}
public static Color FromUint(uint argb)