chore: use =default for default constructors/destructors (#29511)
This commit is contained in:
parent
b1d1ac6524
commit
81c5da5221
44 changed files with 68 additions and 61 deletions
|
@ -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,
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace gin_helper {
|
|||
|
||||
gin::WrapperInfo Event::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||
|
||||
Event::Event() {}
|
||||
Event::Event() = default;
|
||||
|
||||
Event::~Event() {
|
||||
if (callback_) {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue