From a9ab0c72a69cacc597e91870f50622de0334f9a7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 6 Jan 2024 13:23:37 +0000 Subject: Use auto in places where the type is unambiguous. --- src/win32/pthread/pthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32/pthread') diff --git a/src/win32/pthread/pthread.cpp b/src/win32/pthread/pthread.cpp index 7b705c9d6..237f29dd4 100644 --- a/src/win32/pthread/pthread.cpp +++ b/src/win32/pthread/pthread.cpp @@ -36,7 +36,7 @@ int pthread_attr_setdetachstate(pthread_attr_t *, int) int pthread_create(pthread_t *thread, const pthread_attr_t *, void *(*entry)(void *), void *param) { - ThreadInfo *ti = new ThreadInfo; + auto *ti = new ThreadInfo; ti->entry = entry; ti->param = param; -- cgit