Browse Source

reorder methods, remove parse on construct

CPP-GTK4
yggverse 3 months ago
parent
commit
840f0425de
  1. 7
      src/app/browser/main/tab/data/navbar/request.cpp

7
src/app/browser/main/tab/data/navbar/request.cpp

@ -3,6 +3,7 @@ @@ -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() @@ -14,8 +15,6 @@ Request::Request()
true
);
parse();
// Connect events
signal_changed().connect(
[this]
@ -40,6 +39,8 @@ Request::Request() @@ -40,6 +39,8 @@ Request::Request()
);
}
Request::~Request() = default;
// Getters
string Request::get_scheme()
{
@ -91,5 +92,3 @@ void Request::parse() // make private?? @@ -91,5 +92,3 @@ void Request::parse() // make private??
path = results[6];
query = results[8];
}
Request::~Request() = default;
Loading…
Cancel
Save