Skip to content

Commit

Permalink
Fix missing virtual qualifier for Option::IsArgumentRequire
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Feb 6, 2024
1 parent eece8a8 commit b66ded8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vrv/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Option {
void SetShortOption(char shortOption, bool isCmdOnly);
char GetShortOption() const { return m_shortOption; }
bool IsCmdOnly() const { return m_isCmdOnly; }
bool IsArgumentRequired() const { return true; }
virtual bool IsArgumentRequired() const { return true; }

/**
* Return a JSON object for the option
Expand Down Expand Up @@ -187,7 +187,7 @@ class OptionBool : public Option {
bool GetDefault() const { return m_defaultValue; }
bool SetValue(bool value);

bool IsArgumentRequired() const { return false; }
bool IsArgumentRequired() const override { return false; }

private:
//
Expand Down

0 comments on commit b66ded8

Please sign in to comment.