Skip to content

Commit e052769

Browse files
committed
Fix hard-coded declarations for form parameters (make them be byref instead of byval)
1 parent d1eaa39 commit e052769

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Rubberduck.Parsing/Symbols/FormEventDeclarations.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using NLog;
32
using Rubberduck.Parsing.VBA;
43
using Rubberduck.VBEditor;
54

@@ -8,7 +7,6 @@ namespace Rubberduck.Parsing.Symbols
87
public class FormEventDeclarations : ICustomDeclarationLoader
98
{
109
private readonly RubberduckParserState _state;
11-
private readonly Logger _logger = LogManager.GetCurrentClassLogger();
1210

1311
public FormEventDeclarations(RubberduckParserState state)
1412
{
@@ -103,7 +101,7 @@ private IReadOnlyList<Declaration> AddHiddenMSFormDeclarations(Declaration paren
103101
null,
104102
string.Empty,
105103
false,
106-
false);
104+
true);
107105

108106
var userFormQueryCloseEventCloseModeParameter = new ParameterDeclaration(
109107
new QualifiedMemberName(
@@ -115,7 +113,7 @@ private IReadOnlyList<Declaration> AddHiddenMSFormDeclarations(Declaration paren
115113
null,
116114
string.Empty,
117115
false,
118-
false);
116+
true);
119117

120118
var userFormResizeEvent = new Declaration(
121119
new QualifiedMemberName(

0 commit comments

Comments
 (0)