diff options
author | Eugene Kosov <claprix@yandex.ru> | 2017-08-25 14:36:13 +0300 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-08-31 13:46:30 +0400 |
commit | 5dd8e1bf2d15a68359e37b439a0d5999808b8001 (patch) | |
tree | 1dea046361a5e7b908d34a12782815460d9900b5 /sql/sql_help.cc | |
parent | e1051590b61b45532284071ac78c50e7a2f24c63 (diff) | |
download | mariadb-git-5dd8e1bf2d15a68359e37b439a0d5999808b8001.tar.gz |
simplify READ_RECORD usage NFC
READ_RECORD read_record;
...
// this
// read_record.read_record(&read_record);
// becomes just
read_record.read_record();
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc index c5583483ea4..4ccaa6a055f 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -202,7 +202,7 @@ int search_topics(THD *thd, TABLE *topics, struct st_find_field *find_fields, FALSE)) DBUG_RETURN(0); - while (!read_record_info.read_record(&read_record_info)) + while (!read_record_info.read_record()) { if (!select->cond->val_int()) // Doesn't match like continue; @@ -246,7 +246,7 @@ int search_keyword(THD *thd, TABLE *keywords, FALSE)) DBUG_RETURN(0); - while (!read_record_info.read_record(&read_record_info) && count<2) + while (!read_record_info.read_record() && count<2) { if (!select->cond->val_int()) // Dosn't match like continue; @@ -380,7 +380,7 @@ int search_categories(THD *thd, TABLE *categories, if (init_read_record(&read_record_info, thd, categories, select, NULL, 1, 0, FALSE)) DBUG_RETURN(0); - while (!read_record_info.read_record(&read_record_info)) + while (!read_record_info.read_record()) { if (select && !select->cond->val_int()) continue; @@ -418,7 +418,7 @@ void get_all_items_for_category(THD *thd, TABLE *items, Field *pfname, FALSE)) DBUG_VOID_RETURN; - while (!read_record_info.read_record(&read_record_info)) + while (!read_record_info.read_record()) { if (!select->cond->val_int()) continue; |