Skip to content

Commit 8ab45d8

Browse files
committed
Get rid of explicit call by name arguments.
1 parent a354a0b commit 8ab45d8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@
1919
using Rubberduck.UI.UnitTesting.Commands;
2020
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
2121

22-
// ReSharper disable ExplicitCallerInfoArgument
23-
2422
namespace Rubberduck.Navigation.CodeExplorer
2523
{
2624
[Flags]
2725
public enum CodeExplorerSortOrder
2826
{
2927
Undefined = 0,
3028
Name = 1,
31-
CodeLine = 1 << 2,
32-
DeclarationType = 1 << 3,
29+
CodeLine = 1 << 1,
30+
DeclarationType = 1 << 2,
3331
DeclarationTypeThenName = DeclarationType | Name,
3432
DeclarationTypeThenCodeLine = DeclarationType | CodeLine
3533
}
@@ -76,11 +74,11 @@ public CodeExplorerViewModel(
7674
RemoveCommand = new DelegateCommand(LogManager.GetCurrentClassLogger(), ExecuteRemoveCommand, _externalRemoveCommand.CanExecute);
7775
}
7876

79-
OnPropertyChanged("Projects");
77+
OnPropertyChanged(nameof(Projects));
8078

8179
SyncCodePaneCommand = syncProvider.GetSyncCommand(this);
8280
// Force a call to EvaluateCanExecute
83-
OnPropertyChanged("SyncCodePaneCommand");
81+
OnPropertyChanged(nameof(SyncCodePaneCommand));
8482
}
8583

8684
public ObservableCollection<ICodeExplorerNode> Projects { get; } = new ObservableCollection<ICodeExplorerNode>();
@@ -109,8 +107,8 @@ public ICodeExplorerNode SelectedItem
109107

110108
OnPropertyChanged();
111109

112-
OnPropertyChanged("ExportVisibility");
113-
OnPropertyChanged("ExportAllVisibility");
110+
OnPropertyChanged(nameof(ExportVisibility));
111+
OnPropertyChanged(nameof(ExportAllVisibility));
114112
}
115113
}
116114

0 commit comments

Comments
 (0)