diff options
author | unknown <bell@sanja.is.com.ua> | 2003-03-05 23:32:59 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-03-05 23:32:59 +0200 |
commit | 33131c9e58a101327e6d867146e79f67a574fa11 (patch) | |
tree | b8e99fe8ae71a1da64306df579ad966b075f9d37 /sql/sql_lex.h | |
parent | 64d48cd6d1d668256bdb639c6467be6112c58164 (diff) | |
download | mariadb-git-33131c9e58a101327e6d867146e79f67a574fa11.tar.gz |
calloc replaced with alloc in st_select_lex_node 'new' operator (SCRUM?)
sql/sql_lex.cc:
initialization of all need field
sql/sql_lex.h:
calloc replaced with alloc
sql/sql_parse.cc:
no need full initialization here
sql/sql_yacc.yy:
removed initialization which will be done in init_qiery method
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index aff3485dbe4..6e03e0441c0 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -221,8 +221,7 @@ public: static void *operator new(size_t size) { - // TODO: Change to alloc() and explicitely clear elements in constructors - return (void*) sql_calloc((uint) size); + return (void*) sql_alloc((uint) size); } static void operator delete(void *ptr,size_t size) {} st_select_lex_node(): linkage(UNSPECIFIED_TYPE) {} |