Skip to content

Commit 78ae297

Browse files
Fixed initialization of _required variable in Argument move constructor
1 parent 342d57e commit 78ae297

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/argument.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Argument::Argument(Argument &&argument)
9999

100100
// forget in other object
101101
argument._info = nullptr;
102+
103+
// store if required
104+
_required = argument._required;
102105
}
103106

104107
/**

0 commit comments

Comments
 (0)