From 840f0425de36511c9a78664983adf5eff82210dd Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 15 Aug 2024 16:19:53 +0300 Subject: [PATCH] reorder methods, remove parse on construct --- src/app/browser/main/tab/data/navbar/request.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/browser/main/tab/data/navbar/request.cpp b/src/app/browser/main/tab/data/navbar/request.cpp index 5ebafb5..2fc7fee 100644 --- a/src/app/browser/main/tab/data/navbar/request.cpp +++ b/src/app/browser/main/tab/data/navbar/request.cpp @@ -3,6 +3,7 @@ using namespace app::browser::main::tab::data::navbar; using namespace std; +// Construct Request::Request() { // Init entry @@ -14,8 +15,6 @@ Request::Request() true ); - parse(); - // Connect events signal_changed().connect( [this] @@ -40,6 +39,8 @@ Request::Request() ); } +Request::~Request() = default; + // Getters string Request::get_scheme() { @@ -90,6 +91,4 @@ void Request::parse() // make private?? port = results[5]; path = results[6]; query = results[8]; -} - -Request::~Request() = default; \ No newline at end of file +} \ No newline at end of file