Bug 1320874 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in view/. r=mstange
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 29 Nov 2016 10:36:29 +0200
changeset 324855 176260cf74af539eb25adcbedb9e7132657df22e
parent 324854 a37d5a9d30fc4d5c31fce00fbf4b169d3db6d30d
child 324856 2747398601801bc3b7371db820443c5b36726097
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersmstange
bugs1320874
milestone53.0a1
Bug 1320874 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in view/. r=mstange MozReview-Commit-ID: G5BkqvHRhW7
view/nsViewManager.cpp
--- a/view/nsViewManager.cpp
+++ b/view/nsViewManager.cpp
@@ -122,17 +122,17 @@ nsViewManager::Init(nsDeviceContext* aCo
   return NS_OK;
 }
 
 nsView*
 nsViewManager::CreateView(const nsRect& aBounds,
                           nsView* aParent,
                           nsViewVisibility aVisibilityFlag)
 {
-  nsView *v = new nsView(this, aVisibilityFlag);
+  auto *v = new nsView(this, aVisibilityFlag);
   v->SetParent(aParent);
   v->SetPosition(aBounds.x, aBounds.y);
   nsRect dim(0, 0, aBounds.width, aBounds.height);
   v->SetDimensions(dim, false);
   return v;
 }
 
 void