Skip to content

Commit

Permalink
delete unused parameterized Option ctors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Oct 16, 2024
1 parent 9dd6090 commit 7548864
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions option.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class OptionCString : public Option
/* Special Member Functions */
OptionCString() = default;

explicit(false) OptionCString(const QString& s) : value_(s), valueb_(s.toUtf8()) {}

explicit(false) operator const char*() const { return value_.isNull()? nullptr : valueb_.constData(); }

option_t type() const override { return type_cstring; }
Expand All @@ -88,8 +86,6 @@ class OptionBool : public Option
/* Special Member Functions */
OptionBool() = default;

explicit(false) OptionBool(const QString& s) : value_(s) {}

/* traditionally bool options without default are considered to be false. */
explicit(false) operator bool() const { return (!value_.isNull() && (value_ != '0')); }

Expand Down

0 comments on commit 7548864

Please sign in to comment.