summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-08-28 09:23:15 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-10 22:27:41 +0200
commitd508ef789828ed79dec5a568743574cb32e91710 (patch)
treec378d5d9150e309e33171bddb85dbe812bd20e66 /sql/set_var.h
parent9ccaa62dd5a975178d02040514f84119f3371c74 (diff)
downloadmariadb-git-d508ef789828ed79dec5a568743574cb32e91710.tar.gz
cleanup: more 'const' qualifiers
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 6dcf478a341..d6398006ca6 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -107,7 +107,7 @@ public:
virtual sys_var_pluginvar *cast_pluginvar() { return 0; }
bool check(THD *thd, set_var *var);
- uchar *value_ptr(THD *thd, enum_var_type type, LEX_STRING *base);
+ uchar *value_ptr(THD *thd, enum_var_type type, const LEX_STRING *base);
/**
Update the system variable with the default value from either
@@ -208,8 +208,8 @@ protected:
It must be of show_val_type type (bool for SHOW_BOOL, int for SHOW_INT,
longlong for SHOW_LONGLONG, etc).
*/
- virtual uchar *session_value_ptr(THD *thd, LEX_STRING *base);
- virtual uchar *global_value_ptr(THD *thd, LEX_STRING *base);
+ virtual uchar *session_value_ptr(THD *thd, const LEX_STRING *base);
+ virtual uchar *global_value_ptr(THD *thd, const LEX_STRING *base);
/**
A pointer to a storage area of the variable, to the raw data.