Bug 1318000 - Replace default bodies of special member functions with = default; in image/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 16 Nov 2016 17:39:43 +0200
changeset 439766 270242c78f0e75cee5d0cd202bb83f883c858d42
parent 439765 a549dd87ecc1fb5a5e49cea39771a9c6c0660062
child 439767 bb8e11a89e20217585fc1272d5dda6fcc3d4313a
push id36084
push userbmo:bpostelnicu@mozilla.com
push dateWed, 16 Nov 2016 15:44:53 +0000
bugs1318000
milestone53.0a1
Bug 1318000 - Replace default bodies of special member functions with = default; in image/. MozReview-Commit-ID: FYzbhclEgyD
image/imgLoader.cpp
image/imgRequestProxy.cpp
--- a/image/imgLoader.cpp
+++ b/image/imgLoader.cpp
@@ -60,17 +60,17 @@ using namespace mozilla;
 using namespace mozilla::dom;
 using namespace mozilla::image;
 using namespace mozilla::net;
 
 MOZ_DEFINE_MALLOC_SIZE_OF(ImagesMallocSizeOf)
 
 class imgMemoryReporter final : public nsIMemoryReporter
 {
-  ~imgMemoryReporter() { }
+  ~imgMemoryReporter() = default;
 
 public:
   NS_DECL_ISUPPORTS
 
   NS_IMETHOD CollectReports(nsIHandleReportCallback* aHandleReport,
                             nsISupports* aData, bool aAnonymize) override
   {
     nsTArray<ImageMemoryCounter> chrome;
--- a/image/imgRequestProxy.cpp
+++ b/image/imgRequestProxy.cpp
@@ -18,17 +18,17 @@ using namespace mozilla::image;
 
 // The split of imgRequestProxy and imgRequestProxyStatic means that
 // certain overridden functions need to be usable in the destructor.
 // Since virtual functions can't be used in that way, this class
 // provides a behavioural trait for each class to use instead.
 class ProxyBehaviour
 {
  public:
-  virtual ~ProxyBehaviour() {}
+  virtual ~ProxyBehaviour() = default;
 
   virtual already_AddRefed<mozilla::image::Image> GetImage() const = 0;
   virtual bool HasImage() const = 0;
   virtual already_AddRefed<ProgressTracker> GetProgressTracker() const = 0;
   virtual imgRequest* GetOwner() const = 0;
   virtual void SetOwner(imgRequest* aOwner) = 0;
 };