Fix .ptr + @safe deprecation

Deprecation: str ~ '\x00'.ptr cannot be used in @safe code, use &str ~ '\x00'[0]
This commit is contained in:
Mihails Strasuns 2017-01-16 21:06:45 +00:00 committed by Matthias Klumpp
parent 5a526018b0
commit 93edffaab5

View file

@ -32,7 +32,7 @@ struct ZeroString(string TypeName)
return;
}
str_ = (str ~ '\0').ptr;
str_ = &(str ~ '\0')[0];
}
///Get the string.