Core/String: Fix missing modifications
Former-commit-id: ac0e45fcc8caf8135542cb2fa6ab02b22182735a
This commit is contained in:
@@ -23,12 +23,20 @@ namespace Nz
|
||||
}
|
||||
|
||||
inline String::SharedString::SharedString(unsigned int strSize) :
|
||||
capacity(strSize),
|
||||
capacity(strSize),
|
||||
size(strSize),
|
||||
string(new char[strSize + 1])
|
||||
{
|
||||
string[strSize] = '\0';
|
||||
}
|
||||
|
||||
inline String::SharedString::SharedString(unsigned int strSize, unsigned int strCapacity) :
|
||||
capacity(strCapacity),
|
||||
size(strSize),
|
||||
string(new char[strCapacity + 1])
|
||||
{
|
||||
string[strSize] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
namespace std
|
||||
|
||||
Reference in New Issue
Block a user