Bug 1613985 - Use default for equivalent-to-default constructors/destructors in editor. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D65287

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2020-03-04 09:10:03 +00:00
parent feb58414e5
commit dd65843b46
2 changed files with 2 additions and 2 deletions

View File

@ -3563,7 +3563,7 @@ class HTMLEditor final : public TextEditor,
nsresult OnError(const nsAString& aErrorName);
private:
~BlobReader() {}
~BlobReader() = default;
RefPtr<dom::BlobImpl> mBlob;
RefPtr<HTMLEditor> mHTMLEditor;

View File

@ -24,7 +24,7 @@ typedef AutoTArray<RefPtr<dom::Element>, 16> ManualNACArray;
*/
class ManualNACPtr final {
public:
ManualNACPtr() {}
ManualNACPtr() = default;
MOZ_IMPLICIT ManualNACPtr(decltype(nullptr)) {}
explicit ManualNACPtr(already_AddRefed<dom::Element> aNewNAC)
: mPtr(aNewNAC) {