chore(Deps/Acelite): Update to 6.5.10 (#3450)

This commit is contained in:
Kargatum
2020-11-11 22:09:02 +07:00
committed by GitHub
parent a93565b6da
commit e27201cee2
921 changed files with 18238 additions and 33164 deletions

View File

@@ -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