Code quality changes

This commit is contained in:
Robin 2016-09-22 20:40:13 +02:00
parent f07ed83722
commit 610f45d082
189 changed files with 4609 additions and 5203 deletions

View file

@ -148,11 +148,9 @@ namespace GreenshotPlugin.UnmanagedHelpers {
public static Color ColorizationColor {
get {
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(COLORIZATION_COLOR_KEY, false)) {
if (key != null) {
object dwordValue = key.GetValue("ColorizationColor");
if (dwordValue != null) {
return Color.FromArgb((Int32)dwordValue);
}
object dwordValue = key?.GetValue("ColorizationColor");
if (dwordValue != null) {
return Color.FromArgb((int)dwordValue);
}
}
return Color.White;