Skip to content

Commit

Permalink
Remove unneeded this-> usage from sql_lex.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed May 23, 2020
1 parent 36019df commit 82d2dc9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sql/sql_lex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3146,7 +3146,7 @@ st_select_lex_node *st_select_lex_node:: insert_chain_before(
{
end_chain_node->link_next= *ptr_pos_to_insert;
(*ptr_pos_to_insert)->link_prev= &end_chain_node->link_next;
this->link_prev= ptr_pos_to_insert;
link_prev= ptr_pos_to_insert;
return this;
}

Expand Down Expand Up @@ -3332,7 +3332,7 @@ bool st_select_lex::mark_as_dependent(THD *thd, st_select_lex *last,
return TRUE;
} while ((s= s->outer_select()) != last && s != 0);
is_correlated= TRUE;
this->master_unit()->item->is_correlated= TRUE;
master_unit()->item->is_correlated= TRUE;
return FALSE;
}

Expand Down Expand Up @@ -4491,7 +4491,7 @@ void LEX::reset_n_backup_query_tables_list(Query_tables_list *backup)
We have to perform full initialization here since otherwise we
will damage backed up state.
*/
this->reset_query_tables_list(TRUE);
reset_query_tables_list(TRUE);
}


Expand All @@ -4505,8 +4505,8 @@ void LEX::reset_n_backup_query_tables_list(Query_tables_list *backup)

void LEX::restore_backup_query_tables_list(Query_tables_list *backup)
{
this->destroy_query_tables_list();
this->set_query_tables_list(backup);
destroy_query_tables_list();
set_query_tables_list(backup);
}


Expand Down Expand Up @@ -6295,7 +6295,7 @@ bool LEX::sp_variable_declarations_set_default(THD *thd, int nvars,
bool last= i + 1 == (uint) nvars;
spvar->default_value= dflt_value_item;
/* The last instruction is responsible for freeing LEX. */
sp_instr_set *is= new (this->thd->mem_root)
sp_instr_set *is= new (thd->mem_root)
sp_instr_set(sphead->instructions(),
spcont, &sp_rcontext_handler_local,
spvar->offset, dflt_value_item,
Expand Down Expand Up @@ -6595,7 +6595,7 @@ sp_variable *LEX::sp_add_for_loop_variable(THD *thd, const LEX_CSTRING *name,
return NULL;

spvar->default_value= value;
sp_instr_set *is= new (this->thd->mem_root)
sp_instr_set *is= new (thd->mem_root)
sp_instr_set(sphead->instructions(),
spcont, &sp_rcontext_handler_local,
spvar->offset, value,
Expand Down

0 comments on commit 82d2dc9

Please sign in to comment.