Skip to content

Commit b1055fa

Browse files
committed
Merge pull request #696 from rubberduck-vba/GrammarIsFun
Fix for ParameterCanBeByValInspectionResult quickfix
2 parents 210de60 + 77ccfa1 commit b1055fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RetailCoder.VBE/Inspections/ParameterCanBeByValInspectionResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override IDictionary<string, Action> GetQuickFixes()
2525

2626
private void PassParameterByValue()
2727
{
28-
var parameter = Context.GetText();
28+
var parameter = Context.Parent.GetText();
2929
var newContent = string.Concat(Tokens.ByVal, " ", parameter.Replace(Tokens.ByRef, string.Empty).Trim());
3030
var selection = QualifiedSelection.Selection;
3131

RetailCoder.VBE/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.4.1.*")]
35-
[assembly: AssemblyFileVersion("1.4.1.0")]
34+
[assembly: AssemblyVersion("1.4.2.*")]
35+
[assembly: AssemblyFileVersion("1.4.2.0")]

0 commit comments

Comments
 (0)