diff options
author | Monty <monty@mariadb.org> | 2020-08-19 02:53:22 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-05-19 22:27:53 +0200 |
commit | 30f0a246a0a2051a5228ecc1c365129ff9920396 (patch) | |
tree | b8cf06048af27a6383ac5f70b860d68156fac5a9 /plugin/func_test | |
parent | 53b43f30781fb26bf8a9764e4d852ac581edd964 (diff) | |
download | mariadb-git-30f0a246a0a2051a5228ecc1c365129ff9920396.tar.gz |
Added override to all releveant methods in Item (and a few other classes)
Other things:
- Remove inline and virtual for methods that are overrides
- Added a 'final' to some Item classes
Diffstat (limited to 'plugin/func_test')
-rw-r--r-- | plugin/func_test/plugin.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/func_test/plugin.cc b/plugin/func_test/plugin.cc index b49f87832d6..f59ee82388c 100644 --- a/plugin/func_test/plugin.cc +++ b/plugin/func_test/plugin.cc @@ -24,12 +24,12 @@ 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; set_maybe_null(); @@ -40,8 +40,9 @@ public: static LEX_CSTRING name= {STRING_WITH_LEN("sysconst_test") }; return name; } - const char *fully_qualified_func_name() const { return "sysconst_test()"; } - Item *get_copy(THD *thd) + 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); } }; |