diff options
author | unknown <pem@mysql.com> | 2003-04-03 16:00:09 +0200 |
---|---|---|
committer | unknown <pem@mysql.com> | 2003-04-03 16:00:09 +0200 |
commit | 0d71f5e1d32e5cc963ae246fb1b5ff487915ec23 (patch) | |
tree | 6fa16a5a919772a56bbfa31b546f23543f7204df /sql/sp_head.h | |
parent | 3a321d49e8f50a0773c4637fbe2ad74f0f94bdd7 (diff) | |
download | mariadb-git-0d71f5e1d32e5cc963ae246fb1b5ff487915ec23.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" |