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 369813 176260cf74af539eb25adcbedb9e7132657df22e
parent 369812 a37d5a9d30fc4d5c31fce00fbf4b169d3db6d30d
child 369814 2747398601801bc3b7371db820443c5b36726097
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1320874
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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