Fixes Windows build.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f64224131b
commit
49b5e2cfe9
|
@ -25,8 +25,7 @@ namespace ArbUt {
|
||||||
public:
|
public:
|
||||||
__ConstStringCharHolder(const std::string_view& value) noexcept
|
__ConstStringCharHolder(const std::string_view& value) noexcept
|
||||||
: _value(new char[value.length() + 1]), _references(1) {
|
: _value(new char[value.length() + 1]), _references(1) {
|
||||||
strncpy(_value, value.data(), value.length());
|
strncpy(_value, value.data(), value.length() + 1);
|
||||||
_value[value.length()] = '\0';
|
|
||||||
}
|
}
|
||||||
~__ConstStringCharHolder() { delete[] _value; }
|
~__ConstStringCharHolder() { delete[] _value; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue