1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Portability fixes

This commit is contained in:
monty@mysql.com
2004-03-05 19:49:50 +02:00
parent b049159431
commit 8f093d0fb3
10 changed files with 51 additions and 46 deletions

View File

@ -69,12 +69,10 @@ public:
Alloced_length=str.Alloced_length; alloced=0;
str_charset=str.str_charset;
}
static void *operator new(size_t size)
{ return (void*) sql_alloc((uint) size); }
static void *operator new(size_t size, MEM_ROOT *mem_root)
{ return (void*) alloc_root(mem_root, (uint) size); }
static void operator delete(void *ptr_arg,size_t size) /*lint -e715 */
{ sql_element_free(ptr_arg); }
{}
~String() { free(); }
inline void set_charset(CHARSET_INFO *charset) { str_charset= charset; }