From 1e0c740db24e4a4c78c6f0f91a79a33e66b11796 Mon Sep 17 00:00:00 2001 From: Andi-Bogdan Postelnicu Date: Tue, 29 Nov 2016 10:36:29 +0200 Subject: [PATCH] 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 --HG-- extra : rebase_source : 1a73b0b93fc995236faa3c1fcd5c1209ecbf0bcc --- view/nsViewManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/nsViewManager.cpp b/view/nsViewManager.cpp index e3796f2c7f0c..a3c61e313c15 100644 --- a/view/nsViewManager.cpp +++ b/view/nsViewManager.cpp @@ -127,7 +127,7 @@ 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);