Fix .ptr + @safe deprecation
Deprecation: str ~ '\x00'.ptr cannot be used in @safe code, use &str ~ '\x00'[0]
This commit is contained in:
parent
5a526018b0
commit
93edffaab5
|
@ -32,7 +32,7 @@ struct ZeroString(string TypeName)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
str_ = (str ~ '\0').ptr;
|
str_ = &(str ~ '\0')[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
///Get the string.
|
///Get the string.
|
||||||
|
|
Loading…
Reference in a new issue