Skip to content

Commit 72c4b63

Browse files
committed
Remove the length clamping in the new constructor
1 parent 99abffe commit 72c4b63

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Core/GameEngine/Source/Common/System/AsciiString.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ AsciiString::AsciiString(const char* s) : m_data(NULL)
210210
// -----------------------------------------------------
211211
AsciiString::AsciiString(const char* s, int len) : m_data(NULL)
212212
{
213-
len = min(s ? (int)strlen(s) : 0, len);
214213
if (len > 0)
215214
{
216215
ensureUniqueBufferOfSize(len + 1, false, s, NULL);

Core/GameEngine/Source/Common/System/UnicodeString.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ UnicodeString::UnicodeString(const WideChar* s) : m_data(NULL)
159159
// -----------------------------------------------------
160160
UnicodeString::UnicodeString(const WideChar* s, int len) : m_data(NULL)
161161
{
162-
len = min(s ? (int)wcslen(s) : 0, len);
163162
if (len > 0)
164163
{
165164
ensureUniqueBufferOfSize(len + 1, false, s, NULL);

0 commit comments

Comments
 (0)