feat: refactor OverteClient constructor and destructor for clarity and consistency

This commit is contained in:
MayaTheShy
2025-11-09 02:16:57 -05:00
parent 5047016225
commit 2e70529a1f

View File

@@ -64,9 +64,8 @@ struct AssignmentClient {
// optionally enabled via STARWORLD_SIMULATE=1. // optionally enabled via STARWORLD_SIMULATE=1.
class OverteClient { class OverteClient {
public: public:
explicit OverteClient(std::string domainUrl) explicit OverteClient(std::string domainUrl);
: m_domainUrl(std::move(domainUrl)) {} ~OverteClient();
~OverteClient(); // Required for unique_ptr with forward-declared type
// Authentication // Authentication
bool login(const std::string& username, const std::string& password, bool login(const std::string& username, const std::string& password,