mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
reorder methods, remove parse on construct
This commit is contained in:
parent
75300eb45e
commit
840f0425de
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue