chore: use =default for default constructors/destructors (#29511)

This commit is contained in:
David Sanders 2021-06-03 21:16:13 -07:00 committed by GitHub
parent b1d1ac6524
commit 81c5da5221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 68 additions and 61 deletions

View file

@ -105,9 +105,9 @@ const char* InAppPurchase::GetTypeName() {
return "InAppPurchase";
}
InAppPurchase::InAppPurchase() {}
InAppPurchase::InAppPurchase() = default;
InAppPurchase::~InAppPurchase() {}
InAppPurchase::~InAppPurchase() = default;
v8::Local<v8::Promise> InAppPurchase::PurchaseProduct(
const std::string& product_id,

View file

@ -16,7 +16,7 @@ namespace gin_helper {
gin::WrapperInfo Event::kWrapperInfo = {gin::kEmbedderNativeGin};
Event::Event() {}
Event::Event() = default;
Event::~Event() {
if (callback_) {

View file

@ -18,7 +18,7 @@ ImageView::ImageView() : View(new views::ImageView()) {
view()->set_owned_by_client();
}
ImageView::~ImageView() {}
ImageView::~ImageView() = default;
void ImageView::SetImage(const gfx::Image& image) {
image_view()->SetImage(image.AsImageSkia());