From 9ff4ee43a5abad974a9e11ba73042b8f5f0768fc Mon Sep 17 00:00:00 2001 From: danra Date: Thu, 24 Mar 2016 18:18:51 +0200 Subject: [PATCH] Use auto instead of repeating explicit class names --- include/swift/Basic/DiverseList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/swift/Basic/DiverseList.h b/include/swift/Basic/DiverseList.h index 8a2169e3500..3a176b1746b 100644 --- a/include/swift/Basic/DiverseList.h +++ b/include/swift/Basic/DiverseList.h @@ -193,7 +193,7 @@ public: return *this; } iterator operator++(int _) { - iterator copy = *this; + auto copy = *this; operator++(); return copy; } @@ -236,7 +236,7 @@ public: return *this; } const_iterator operator++(int _) { - const_iterator copy = *this; + auto copy = *this; operator++(); return copy; }