mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-33746 Supply missing override markings
Find and fix missing virtual override markings. Updates cmake maintainer flags to include -Wsuggest-override and -Winconsistent-missing-override.
This commit is contained in:
committed by
Dave Gosselin
parent
ab448d4b34
commit
db0c28eff8
@@ -24,20 +24,20 @@ class Item_func_sysconst_test :public Item_func_sysconst
|
||||
{
|
||||
public:
|
||||
Item_func_sysconst_test(THD *thd): Item_func_sysconst(thd) {}
|
||||
String *val_str(String *str)
|
||||
String *val_str(String *str) override
|
||||
{
|
||||
null_value= str->copy(STRING_WITH_LEN("sysconst_test"), system_charset_info);
|
||||
return null_value ? NULL : str;
|
||||
}
|
||||
bool fix_length_and_dec()
|
||||
bool fix_length_and_dec() override
|
||||
{
|
||||
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
|
||||
maybe_null= true;
|
||||
return false;
|
||||
}
|
||||
const char *func_name() const { return "sysconst_test"; }
|
||||
const char *fully_qualified_func_name() const { return "sysconst_test()"; }
|
||||
Item *get_copy(THD *thd)
|
||||
const char *func_name() const override { return "sysconst_test"; }
|
||||
const char *fully_qualified_func_name() const override { return "sysconst_test()"; }
|
||||
Item *get_copy(THD *thd) override
|
||||
{ return get_item_copy<Item_func_sysconst_test>(thd, this); }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user