Skip to content

Commit 7a7d793

Browse files
committed
Merge pull request #871 from SlavaRa/feature/refactor_1
Small code cleanup
2 parents 6baf568 + 8ab7c14 commit 7a7d793

File tree

33 files changed

+71
-71
lines changed

33 files changed

+71
-71
lines changed

External/Plugins/AS2Context/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void Dispose()
108108
/// <summary>
109109
/// Handles the incoming events
110110
/// </summary>
111-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
111+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
112112
{
113113
switch (e.Type)
114114
{

External/Plugins/ASClassWizard/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void Dispose()
106106
// Nothing here...
107107
}
108108

109-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
109+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
110110
{
111111
Project project;
112112
switch (e.Type)

External/Plugins/ASCompletion/PluginMain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void Dispose()
156156
/**
157157
* Handles the incoming events
158158
*/
159-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
159+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
160160
{
161161
try
162162
{
@@ -270,7 +270,7 @@ public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
270270

271271
if (command.StartsWith("ASCompletion."))
272272
{
273-
string cmdData = (de.Data is string) ? (string)de.Data : null;
273+
string cmdData = de.Data as string;
274274

275275
// add a custom classpath
276276
if (command == "ASCompletion.ClassPath")

External/Plugins/AirProperties/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void Dispose()
121121
/// <summary>
122122
/// Handles the incoming events
123123
/// </summary>
124-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
124+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
125125
{
126126
switch (e.Type)
127127
{

External/Plugins/BasicCompletion/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void Dispose()
121121
/// <summary>
122122
/// Handles the incoming events
123123
/// </summary>
124-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
124+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
125125
{
126126
ITabbedDocument document = PluginBase.MainForm.CurrentDocument;
127127
if (document == null || !document.IsEditable) return;

External/Plugins/BookmarkPanel/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void Dispose()
103103
/// <summary>
104104
/// Handles the incoming events
105105
/// </summary>
106-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
106+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
107107
{
108108
switch (e.Type)
109109
{

External/Plugins/BookmarkPanel/PluginUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ private void UpdateMarkers(String filename)
481481
ListViewGroup group = this.FindGroup(document.FileName);
482482
if (group == null) return;
483483
List<Int32> markers = this.GetMarkers(document.SciControl);
484-
if (this.NeedRefresh(document.SciControl, markers, @group.Items))
484+
if (this.NeedRefresh(document.SciControl, markers, group.Items))
485485
{
486486
Int32 index = 0;
487487
ListViewItem item;

External/Plugins/BridgeSettings/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void Dispose()
103103
/// <summary>
104104
/// Handles the incoming events
105105
/// </summary>
106-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
106+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
107107
{
108108
// Nothing to do here..
109109
}

External/Plugins/CodeAnalyzer/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void Dispose()
107107
/// <summary>
108108
/// Handles the incoming events
109109
/// </summary>
110-
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority prority)
110+
public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
111111
{
112112
switch (e.Type)
113113
{

External/Plugins/CodeFormatter/InfoCollector/AntlrUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static List<IToken> getPostHiddenTokens(ParserRuleReturnScope tree, Commo
240240
if (tree.Tree==null)
241241
{
242242
//I think this only happens with implied semicolons
243-
if (tree.Start is CommonToken && tree.Start!=null)
243+
if (tree.Start is CommonToken)
244244
{
245245
//I think we should always be on at least token 1.
246246
IToken currentTok=rawTokens.Get(((CommonToken)tree.Start).TokenIndex);

0 commit comments

Comments
 (0)