From 207d5079a7f451d2f96a6bcc3a8a07c1050dc763 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Sep 2024 01:40:56 +0300 Subject: [PATCH] remove destructors overwrite --- src/app/browser/header/main/subtitle.cpp | 2 -- src/app/browser/header/main/subtitle.hpp | 2 -- src/app/browser/header/main/title.cpp | 2 -- src/app/browser/header/main/title.hpp | 2 -- src/app/browser/main/tab/label.cpp | 4 +--- src/app/browser/main/tab/label.hpp | 2 -- src/app/browser/main/tab/page/content/text/gemini.cpp | 4 +--- src/app/browser/main/tab/page/content/text/gemini.hpp | 2 -- src/app/browser/main/tab/page/content/text/plain.cpp | 4 +--- src/app/browser/main/tab/page/content/text/plain.hpp | 2 -- src/app/browser/main/tab/page/navigation/base.cpp | 4 +--- src/app/browser/main/tab/page/navigation/base.hpp | 2 -- src/app/browser/main/tab/page/navigation/bookmark.cpp | 4 +--- src/app/browser/main/tab/page/navigation/bookmark.hpp | 2 -- src/app/browser/main/tab/page/navigation/history/back.cpp | 2 -- src/app/browser/main/tab/page/navigation/history/back.hpp | 2 -- src/app/browser/main/tab/page/navigation/history/forward.cpp | 4 +--- src/app/browser/main/tab/page/navigation/history/forward.hpp | 2 -- 18 files changed, 6 insertions(+), 42 deletions(-) diff --git a/src/app/browser/header/main/subtitle.cpp b/src/app/browser/header/main/subtitle.cpp index d0396e51..f1b1cb2a 100644 --- a/src/app/browser/header/main/subtitle.cpp +++ b/src/app/browser/header/main/subtitle.cpp @@ -27,8 +27,6 @@ Subtitle::Subtitle() hide(); } -Subtitle::~Subtitle() = default; - void Subtitle::set( const Glib::ustring & TEXT ) { diff --git a/src/app/browser/header/main/subtitle.hpp b/src/app/browser/header/main/subtitle.hpp index 92cc6d4a..47b3fda7 100644 --- a/src/app/browser/header/main/subtitle.hpp +++ b/src/app/browser/header/main/subtitle.hpp @@ -16,8 +16,6 @@ namespace app::browser::header::main Subtitle(); - ~Subtitle(); - void set( const Glib::ustring & TEXT ); diff --git a/src/app/browser/header/main/title.cpp b/src/app/browser/header/main/title.cpp index faae0d7c..d2d21ab1 100644 --- a/src/app/browser/header/main/title.cpp +++ b/src/app/browser/header/main/title.cpp @@ -29,8 +29,6 @@ Title::Title() ); } -Title::~Title() = default; - void Title::set( const Glib::ustring & TEXT ) { diff --git a/src/app/browser/header/main/title.hpp b/src/app/browser/header/main/title.hpp index da1ce3e7..21363532 100644 --- a/src/app/browser/header/main/title.hpp +++ b/src/app/browser/header/main/title.hpp @@ -18,8 +18,6 @@ namespace app::browser::header::main Title(); - ~Title(); - void set( const Glib::ustring & TEXT ); diff --git a/src/app/browser/main/tab/label.cpp b/src/app/browser/main/tab/label.cpp index bc8c919b..e37ee4c1 100644 --- a/src/app/browser/main/tab/label.cpp +++ b/src/app/browser/main/tab/label.cpp @@ -32,6 +32,4 @@ Label::Label( add_controller( GtkGestureClick ); -} - -Label::~Label() = default; \ No newline at end of file +} \ No newline at end of file diff --git a/src/app/browser/main/tab/label.hpp b/src/app/browser/main/tab/label.hpp index 4ea4f261..bbcbceb8 100644 --- a/src/app/browser/main/tab/label.hpp +++ b/src/app/browser/main/tab/label.hpp @@ -16,8 +16,6 @@ namespace app::browser::main::tab Label( const Glib::ustring & TEXT ); - - ~Label(); }; } diff --git a/src/app/browser/main/tab/page/content/text/gemini.cpp b/src/app/browser/main/tab/page/content/text/gemini.cpp index d1fe8e9f..365d2ef6 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini.cpp @@ -16,6 +16,4 @@ Gemini::Gemini( set_markup( gemtext // @TODO ); -} - -Gemini::~Gemini() = default; \ No newline at end of file +} \ No newline at end of file diff --git a/src/app/browser/main/tab/page/content/text/gemini.hpp b/src/app/browser/main/tab/page/content/text/gemini.hpp index ccce9497..85b6fa87 100644 --- a/src/app/browser/main/tab/page/content/text/gemini.hpp +++ b/src/app/browser/main/tab/page/content/text/gemini.hpp @@ -13,8 +13,6 @@ namespace app::browser::main::tab::page::content::text Gemini( const Glib::ustring & gemtext ); - - ~Gemini(); }; } diff --git a/src/app/browser/main/tab/page/content/text/plain.cpp b/src/app/browser/main/tab/page/content/text/plain.cpp index 480eaa4c..15555a9f 100644 --- a/src/app/browser/main/tab/page/content/text/plain.cpp +++ b/src/app/browser/main/tab/page/content/text/plain.cpp @@ -16,6 +16,4 @@ Plain::Plain( set_text( text ); -} - -Plain::~Plain() = default; \ No newline at end of file +} \ No newline at end of file diff --git a/src/app/browser/main/tab/page/content/text/plain.hpp b/src/app/browser/main/tab/page/content/text/plain.hpp index 6209b05d..bc666258 100644 --- a/src/app/browser/main/tab/page/content/text/plain.hpp +++ b/src/app/browser/main/tab/page/content/text/plain.hpp @@ -13,8 +13,6 @@ namespace app::browser::main::tab::page::content::text Plain( const Glib::ustring & text ); - - ~Plain(); }; } diff --git a/src/app/browser/main/tab/page/navigation/base.cpp b/src/app/browser/main/tab/page/navigation/base.cpp index 3a5f30cb..633ee67a 100644 --- a/src/app/browser/main/tab/page/navigation/base.cpp +++ b/src/app/browser/main/tab/page/navigation/base.cpp @@ -15,6 +15,4 @@ Base::Base() set_tooltip_text( _("Base") ); -} - -Base::~Base() = default; +} \ No newline at end of file diff --git a/src/app/browser/main/tab/page/navigation/base.hpp b/src/app/browser/main/tab/page/navigation/base.hpp index 24efac73..c1bb6cf5 100644 --- a/src/app/browser/main/tab/page/navigation/base.hpp +++ b/src/app/browser/main/tab/page/navigation/base.hpp @@ -11,8 +11,6 @@ namespace app::browser::main::tab::page::navigation public: Base(); - - ~Base(); }; } diff --git a/src/app/browser/main/tab/page/navigation/bookmark.cpp b/src/app/browser/main/tab/page/navigation/bookmark.cpp index 521f2598..8a0485d3 100644 --- a/src/app/browser/main/tab/page/navigation/bookmark.cpp +++ b/src/app/browser/main/tab/page/navigation/bookmark.cpp @@ -15,6 +15,4 @@ Bookmark::Bookmark() set_tooltip_text( _("Toggle bookmark") ); -} - -Bookmark::~Bookmark() = default; +} \ No newline at end of file diff --git a/src/app/browser/main/tab/page/navigation/bookmark.hpp b/src/app/browser/main/tab/page/navigation/bookmark.hpp index 2fbee63b..bebced33 100644 --- a/src/app/browser/main/tab/page/navigation/bookmark.hpp +++ b/src/app/browser/main/tab/page/navigation/bookmark.hpp @@ -11,8 +11,6 @@ namespace app::browser::main::tab::page::navigation public: Bookmark(); - - ~Bookmark(); }; } diff --git a/src/app/browser/main/tab/page/navigation/history/back.cpp b/src/app/browser/main/tab/page/navigation/history/back.cpp index 4452ce1d..8517e9ec 100644 --- a/src/app/browser/main/tab/page/navigation/history/back.cpp +++ b/src/app/browser/main/tab/page/navigation/history/back.cpp @@ -29,5 +29,3 @@ Back::Back() } ); } - -Back::~Back() = default; diff --git a/src/app/browser/main/tab/page/navigation/history/back.hpp b/src/app/browser/main/tab/page/navigation/history/back.hpp index 9a65ac7c..d5804312 100644 --- a/src/app/browser/main/tab/page/navigation/history/back.hpp +++ b/src/app/browser/main/tab/page/navigation/history/back.hpp @@ -11,8 +11,6 @@ namespace app::browser::main::tab::page::navigation::history public: Back(); - - ~Back(); }; } diff --git a/src/app/browser/main/tab/page/navigation/history/forward.cpp b/src/app/browser/main/tab/page/navigation/history/forward.cpp index c86fec77..84c69452 100644 --- a/src/app/browser/main/tab/page/navigation/history/forward.cpp +++ b/src/app/browser/main/tab/page/navigation/history/forward.cpp @@ -28,6 +28,4 @@ Forward::Forward() ); } ); -} - -Forward::~Forward() = default; +} \ No newline at end of file diff --git a/src/app/browser/main/tab/page/navigation/history/forward.hpp b/src/app/browser/main/tab/page/navigation/history/forward.hpp index 2bb82657..337c6c40 100644 --- a/src/app/browser/main/tab/page/navigation/history/forward.hpp +++ b/src/app/browser/main/tab/page/navigation/history/forward.hpp @@ -11,8 +11,6 @@ namespace app::browser::main::tab::page::navigation::history public: Forward(); - - ~Forward(); }; }