diff options
author | pem@mysql.com <> | 2003-04-03 16:00:09 +0200 |
---|---|---|
committer | pem@mysql.com <> | 2003-04-03 16:00:09 +0200 |
commit | 1fc3582b7d473e3b99ce9bc13a2fadd456a027a6 (patch) | |
tree | 6fa16a5a919772a56bbfa31b546f23543f7204df /sql/sp_head.h | |
parent | e483c8ff5ac531650c18920ceaf11635269120ba (diff) | |
download | mariadb-git-1fc3582b7d473e3b99ce9bc13a2fadd456a027a6.tar.gz |
Got rid of the last unecessary Item_strings.
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index 840276681a5..afc7822cca3 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -99,11 +99,9 @@ public: char *name(uint *lenp = 0) const { - String *n= m_name->const_string(); - if (lenp) - *lenp= n->length(); - return n->c_ptr(); + *lenp= m_name.length; + return m_name.str; } inline Item_result result() @@ -113,8 +111,8 @@ public: private: - Item_string *m_name; - Item_string *m_defstr; + LEX_STRING m_name; + LEX_STRING m_defstr; sp_pcontext *m_pcont; // Parse context LEX m_lex; // Temp. store for the other lex DYNAMIC_ARRAY m_instr; // The "instructions" |