Bug 1462272: Minor cleanup of nsImageListener's ctor / dtors. r?dholbert draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 16 May 2018 20:56:14 +0200
changeset 796234 bfd4973918d6140b0c13903332a9b6da44533721
parent 796233 4b93479ae3a2478e348da910fdbf102ec59fa52f
child 796235 64deb4e7beea11db8da0119a21b7268d4b902a86
push id110185
push userbmo:emilio@crisal.io
push dateThu, 17 May 2018 09:02:34 +0000
reviewersdholbert
bugs1462272
milestone62.0a1
Bug 1462272: Minor cleanup of nsImageListener's ctor / dtors. r?dholbert MozReview-Commit-ID: BHipMKnFQvA
layout/generic/nsImageFrame.cpp
--- a/layout/generic/nsImageFrame.cpp
+++ b/layout/generic/nsImageFrame.cpp
@@ -2429,24 +2429,22 @@ nsImageFrame::IconLoad::Notify(imgIReque
     frame->InvalidateFrame();
   }
 
   return NS_OK;
 }
 
 NS_IMPL_ISUPPORTS(nsImageListener, imgINotificationObserver)
 
-nsImageListener::nsImageListener(nsImageFrame *aFrame) :
-  mFrame(aFrame)
+nsImageListener::nsImageListener(nsImageFrame* aFrame)
+  : mFrame(aFrame)
 {
 }
 
-nsImageListener::~nsImageListener()
-{
-}
+nsImageListener::~nsImageListener() = default;
 
 NS_IMETHODIMP
 nsImageListener::Notify(imgIRequest *aRequest, int32_t aType, const nsIntRect* aData)
 {
   if (!mFrame)
     return NS_ERROR_FAILURE;
 
   return mFrame->Notify(aRequest, aType, aData);