Bug 1319783 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in xpfe/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 23 Nov 2016 16:32:57 +0200
changeset 442904 e19f570160e99b5ff8705a169ba5b0d3d9da1ebd
parent 442499 1a3194836cb4c3da6ba3a9742a2d25cf26669b55
child 442905 255145e981f004a3c3eecef1d2155e636d92b2a1
push id36861
push userbmo:bpostelnicu@mozilla.com
push dateWed, 23 Nov 2016 14:36:01 +0000
bugs1319783
milestone53.0a1
Bug 1319783 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in xpfe/. MozReview-Commit-ID: BmEfD53crH5
xpfe/components/directory/nsDirectoryViewer.cpp
--- a/xpfe/components/directory/nsDirectoryViewer.cpp
+++ b/xpfe/components/directory/nsDirectoryViewer.cpp
@@ -646,17 +646,17 @@ nsHTTPIndex::Init(nsIURI* aBaseURL)
 
 
 nsresult
 nsHTTPIndex::Create(nsIURI* aBaseURL, nsIInterfaceRequestor* aRequestor,
                     nsIHTTPIndex** aResult)
 {
   *aResult = nullptr;
 
-  nsHTTPIndex* result = new nsHTTPIndex(aRequestor);
+  auto* result = new nsHTTPIndex(aRequestor);
   nsresult rv = result->Init(aBaseURL);
   if (NS_SUCCEEDED(rv))
   {
     NS_ADDREF(result);
     *aResult = result;
   }
   else
   {