Bug 1319752 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in startupcache/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 23 Nov 2016 14:22:34 +0200
changeset 442862 f265a9c32a52fe316d0152ba88aa3ecd832fdf66
parent 442861 1b24f0a6be406daacf9c8a4c37d15f09ce078e7e
child 537918 9839a8359f28a4f8cb914f91178c1c57c3f5a337
push id36849
push userbmo:bpostelnicu@mozilla.com
push dateWed, 23 Nov 2016 12:27:27 +0000
bugs1319752
milestone53.0a1
Bug 1319752 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in startupcache/. MozReview-Commit-ID: AIE6kmT4lho
startupcache/StartupCache.cpp
--- a/startupcache/StartupCache.cpp
+++ b/startupcache/StartupCache.cpp
@@ -564,18 +564,17 @@ StartupCacheListener::Observe(nsISupport
 } 
 
 nsresult
 StartupCache::GetDebugObjectOutputStream(nsIObjectOutputStream* aStream,
                                          nsIObjectOutputStream** aOutStream) 
 {
   NS_ENSURE_ARG_POINTER(aStream);
 #ifdef DEBUG
-  StartupCacheDebugOutputStream* stream
-    = new StartupCacheDebugOutputStream(aStream, &mWriteObjectMap);
+  auto* stream = new StartupCacheDebugOutputStream(aStream, &mWriteObjectMap);
   NS_ADDREF(*aOutStream = stream);
 #else
   NS_ADDREF(*aOutStream = aStream);
 #endif
   
   return NS_OK;
 }