Skip to content

Commit

Permalink
Bug 1613985 - Use default for equivalent-to-default constructors/dest…
Browse files Browse the repository at this point in the history
…ructors in image. r=tnikkel

Depends on D65288

Differential Revision: https://phabricator.services.mozilla.com/D65290
  • Loading branch information
sigiesec committed Mar 4, 2020
1 parent a1859cf commit f734386
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion image/IProgressObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IProgressObserver : public SupportsWeakPtr<IProgressObserver> {
}

protected:
virtual ~IProgressObserver() {}
virtual ~IProgressObserver() = default;
};

} // namespace image
Expand Down
4 changes: 2 additions & 2 deletions image/ImageOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ImageOps {
protected:
friend class ImageOps;

ImageBuffer() {}
virtual ~ImageBuffer() {}
ImageBuffer() = default;
virtual ~ImageBuffer() = default;

virtual already_AddRefed<SourceBuffer> GetSourceBuffer() const = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion image/imgLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class nsProgressNotificationProxy final : public nsIProgressEventSink,
NS_DECL_NSICHANNELEVENTSINK
NS_DECL_NSIINTERFACEREQUESTOR
private:
~nsProgressNotificationProxy() {}
~nsProgressNotificationProxy() = default;

nsCOMPtr<nsIInterfaceRequestor> mOriginalCallbacks;
nsCOMPtr<nsIRequest> mImageRequest;
Expand Down

0 comments on commit f734386

Please sign in to comment.