diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-11-19 09:13:38 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-12-04 10:41:51 +0100 |
commit | 2ae7541bcf93985302bc7efb2629e6f623ccfc64 (patch) | |
tree | d0b14c1dba4bffc2ae82f2d51f1f9ef4ebf7035a /sql/sql_explain.cc | |
parent | 0d30423900dd3a384f061c32f6ec3de9c11cdde9 (diff) | |
download | mariadb-git-2ae7541bcf93985302bc7efb2629e6f623ccfc64.tar.gz |
cleanup: s/const CHARSET_INFO/CHARSET_INFO/
as CHARSET_INFO is already const, using const on it
is redundant and results in compiler warnings (on Windows)
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index 59f38f7f167..0ad6a4d89ea 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -207,7 +207,7 @@ void Explain_query::print_explain_json(select_result_sink *output, bool is_analy writer.end_object(); - const CHARSET_INFO *cs= system_charset_info; + CHARSET_INFO *cs= system_charset_info; List<Item> item_list; String *buf= &writer.output; item_list.push_back(new Item_string(buf->ptr(), buf->length(), cs)); @@ -416,7 +416,7 @@ int Explain_union::print_explain(Explain_query *query, uint8 explain_flags, bool is_analyze) { - //const CHARSET_INFO *cs= system_charset_info; + //CHARSET_INFO *cs= system_charset_info; char table_name_buffer[SAFE_NAME_LEN]; /* print all UNION children, in order */ @@ -762,7 +762,7 @@ void Explain_table_access::push_extra(enum explain_extra_tag extra_tag) void Explain_table_access::fill_key_str(String *key_str, bool is_json) const { - const CHARSET_INFO *cs= system_charset_info; + CHARSET_INFO *cs= system_charset_info; bool is_hj= (type == JT_HASH || type == JT_HASH_NEXT || type == JT_HASH_RANGE || type == JT_HASH_INDEX_MERGE); const char *hash_key_prefix= "#hash#"; @@ -882,7 +882,7 @@ int Explain_table_access::print_explain(select_result_sink *output, uint8 explai uint select_id, const char *select_type, bool using_temporary, bool using_filesort) { - //const CHARSET_INFO *cs= system_charset_info; + //CHARSET_INFO *cs= system_charset_info; List<Item> item_list; Item *item_null= new Item_null(); |