Bug 1317973 - Use auto type specifier for variable declarations to improve code readability and maintainability r=tnikkel

MozReview-Commit-ID: 5RDrGaxV3E4
This commit is contained in:
Sylvestre Ledru
2016-11-16 15:22:36 +01:00
parent 87ea1806c2
commit a78ffc700c
4 changed files with 22 additions and 23 deletions

View File

@@ -559,8 +559,7 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
if (flo) {
RefPtr<nsFrameLoader> fl = flo->GetFrameLoader();
if (fl) {
mozilla::dom::TabParent* tp =
static_cast<mozilla::dom::TabParent*>(fl->GetRemoteBrowser());
auto* tp = static_cast<mozilla::dom::TabParent*>(fl->GetRemoteBrowser());
if (tp && tp->TakeDragVisualization(*aSurface, aScreenDragRect)) {
if (mImage) {
// Just clear the surface if chrome has overridden it with an image.