diff options
author | Alexander Barkov <bar@mariadb.com> | 2022-04-04 09:45:29 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2022-04-04 09:50:32 +0400 |
commit | 0ffaf19c53ccd102a369016cd01dec38ee9ac5a7 (patch) | |
tree | fec92162177910c8f1c03159999de7e70e0a273c /plugin | |
parent | d271fbd392b02ff8b98d552aef7164270c9d66fd (diff) | |
download | mariadb-git-0ffaf19c53ccd102a369016cd01dec38ee9ac5a7.tar.gz |
Adding a "const" qualifier to arguments of create_func(), create_native() etc
The "const" qualifier was obviously forgotten.
This change will also simpily fixing of MDEV-27744.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/versioning/versioning.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugin/versioning/versioning.cc b/plugin/versioning/versioning.cc index 56f8f1f5a1d..fd0e7099666 100644 --- a/plugin/versioning/versioning.cc +++ b/plugin/versioning/versioning.cc @@ -29,7 +29,8 @@ template <TR_table::field_id_t TRT_FIELD> class Create_func_trt : public Create_native_func { public: - virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list); + virtual Item *create_native(THD *thd, const LEX_CSTRING *name, + List<Item> *item_list); static Create_func_trt<TRT_FIELD> s_singleton; @@ -43,7 +44,7 @@ Create_func_trt<TRT_FIELD> Create_func_trt<TRT_FIELD>::s_singleton; template <TR_table::field_id_t TRT_FIELD> Item* -Create_func_trt<TRT_FIELD>::create_native(THD *thd, LEX_CSTRING *name, +Create_func_trt<TRT_FIELD>::create_native(THD *thd, const LEX_CSTRING *name, List<Item> *item_list) { Item *func= NULL; @@ -102,7 +103,8 @@ template <class Item_func_trt_trx_seesX> class Create_func_trt_trx_sees : public Create_native_func { public: - virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list) + virtual Item *create_native(THD *thd, const LEX_CSTRING *name, + List<Item> *item_list) { Item *func= NULL; int arg_count= 0; |