Simplify 'default' expression (IDE0034)
This commit is contained in:
committed by
Matthias Mailänder
parent
02d9ba020d
commit
858d782af1
@@ -37,7 +37,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
if (!data.TryGetValue(key, out var s))
|
||||
{
|
||||
result = default(T);
|
||||
result = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -340,7 +340,7 @@ namespace OpenRA.Widgets
|
||||
|
||||
void ForceYieldMouseFocus()
|
||||
{
|
||||
if (Ui.MouseFocusWidget == this && !YieldMouseFocus(default(MouseInput)))
|
||||
if (Ui.MouseFocusWidget == this && !YieldMouseFocus(default))
|
||||
Ui.MouseFocusWidget = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user