mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
13
deps/acelite/ace/SString.cpp
vendored
13
deps/acelite/ace/SString.cpp
vendored
@@ -1,7 +1,6 @@
|
||||
#include "ace/Malloc_T.h"
|
||||
#include "ace/OS_Memory.h"
|
||||
#include "ace/SString.h"
|
||||
#include "ace/Auto_Ptr.h"
|
||||
#include "ace/OS_NS_string.h"
|
||||
#include "ace/Numeric_Limits.h"
|
||||
|
||||
@@ -63,9 +62,15 @@ ACE_NS_WString::char_rep (void) const
|
||||
{
|
||||
char *t = 0;
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_ALLOCATOR_RETURN (t,
|
||||
static_cast<char*>(ACE_Allocator::instance()->malloc (sizeof (char) * (this->len_ + 1))),
|
||||
0);
|
||||
#else
|
||||
ACE_NEW_RETURN (t,
|
||||
char[this->len_ + 1],
|
||||
0);
|
||||
#endif
|
||||
|
||||
for (size_type i = 0; i < this->len_; ++i)
|
||||
// Note that this cast may lose data if wide chars are
|
||||
@@ -87,9 +92,15 @@ ACE_NS_WString::ushort_rep (void) const
|
||||
{
|
||||
ACE_UINT16 *t = 0;
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_ALLOCATOR_RETURN (t,
|
||||
static_cast<ACE_UINT16*> (ACE_Allocator::instance()->malloc(sizeof(ACE_UINT16) * (this->len_ + 1))),
|
||||
0);
|
||||
#else
|
||||
ACE_NEW_RETURN (t,
|
||||
ACE_UINT16[this->len_ + 1],
|
||||
0);
|
||||
#endif
|
||||
|
||||
for (size_type i = 0; i < this->len_; ++i)
|
||||
// Note that this cast may lose data if wide chars are
|
||||
|
||||
Reference in New Issue
Block a user