use auto type when assigning from cast or using new

This commit is contained in:
Axel Kohlmeyer
2022-04-10 18:16:36 -04:00
parent 6071376d42
commit 39b316729b
365 changed files with 1195 additions and 1233 deletions

View File

@ -262,7 +262,7 @@ void FixSpringChunk::write_restart(FILE *fp)
void FixSpringChunk::restart(char *buf)
{
double *list = (double *) buf;
auto list = (double *) buf;
int n = list[0];
memory->destroy(com0);