updated minor memory management to avoid text corruption
This commit is contained in:
parent
4e547635d8
commit
9c413c0edd
6 changed files with 17 additions and 15 deletions
|
@ -10,13 +10,13 @@ using json = nlohmann::json;
|
|||
namespace gns {
|
||||
|
||||
|
||||
GnsProject::GnsProject(const GnsServer* server, std::string uuid) {
|
||||
GnsProject::GnsProject(const GnsServer* server, const std::string& uuid) {
|
||||
this->server = server;
|
||||
this->uuid = std::move(uuid);
|
||||
this->uuid = uuid;
|
||||
}
|
||||
|
||||
std::string GnsProject::getApiBase() const {
|
||||
return this->server->getApiBase() + "projects/" + this->uuid + "/";
|
||||
return this->server->getApiBase() + "projects/" + this->getUuid() + "/";
|
||||
}
|
||||
|
||||
std::string GnsProject::getUuid() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue