Skip to content

Commit b99c4a4

Browse files
Add override specifiers to methods in set_initial_value_cmd class for clarity and consistency
1 parent 8349ee0 commit b99c4a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cmd_context/basic_cmds.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ class set_initial_value_cmd : public cmd {
323323
public:
324324
set_initial_value_cmd(): cmd("set-initial-value") {}
325325
char const* get_usage() const override { return "<var> <value>"; }
326-
char const* get_descr(cmd_context& ctx) const { return "set an initial value for search as a hint to the solver"; }
327-
unsigned get_arity() const { return 2; }
328-
void prepare(cmd_context& ctx) { m_var = m_value = nullptr; }
329-
cmd_arg_kind next_arg_kind(cmd_context& ctx) const { return CPK_EXPR; }
330-
void set_next_arg(cmd_context& ctx, expr* e) { if (m_var) m_value = e; else m_var = e; }
331-
void execute(cmd_context& ctx) {
326+
char const* get_descr(cmd_context& ctx) const override { return "set an initial value for search as a hint to the solver"; }
327+
unsigned get_arity() const override { return 2; }
328+
void prepare(cmd_context& ctx) override { m_var = m_value = nullptr; }
329+
cmd_arg_kind next_arg_kind(cmd_context& ctx) const override { return CPK_EXPR; }
330+
void set_next_arg(cmd_context& ctx, expr* e) override { if (m_var) m_value = e; else m_var = e; }
331+
void execute(cmd_context& ctx) override {
332332
SASSERT(m_var && m_value);
333333
if (ctx.get_opt())
334334
ctx.get_opt()->initialize_value(m_var, m_value);

0 commit comments

Comments
 (0)