Skip to content

Commit

Permalink
fixed selection issue in ParameterCanBeByValInspectionResult.PassPara…
Browse files Browse the repository at this point in the history
…meterByValue()
  • Loading branch information
retailcoder committed Mar 23, 2015
1 parent a2d2e0a commit dfac803
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ParameterCanBeByValInspectionResult : CodeInspectionResultBase

private void PassParameterByValue(VBE vbe)
{
var parameter = Context.Parent.GetText();
var parameter = Context.GetText();
var newContent = string.Concat(Tokens.ByVal, " ", parameter.Replace(Tokens.ByRef, string.Empty).Trim());
var selection = QualifiedSelection.Selection;

Expand Down

0 comments on commit dfac803

Please sign in to comment.