Small fixes
This commit is contained in:
parent
1f738d8a02
commit
89aee4b00e
@ -25,7 +25,7 @@ namespace demonware
|
|||||||
return server;
|
return server;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::shared_ptr<stun_server> register_stun_server(std::string name)
|
static std::shared_ptr<stun_server> register_stun_server(const std::string& name)
|
||||||
{
|
{
|
||||||
std::lock_guard _(server_mutex_);
|
std::lock_guard _(server_mutex_);
|
||||||
auto server = std::make_shared<stun_server>(name);
|
auto server = std::make_shared<stun_server>(name);
|
||||||
|
@ -39,7 +39,7 @@ namespace utils::string
|
|||||||
class entry final
|
class entry final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit entry(size_t _size = MinBufferSize) : size(_size), buffer(nullptr)
|
explicit entry(const size_t _size = MinBufferSize) : size(_size), buffer(nullptr)
|
||||||
{
|
{
|
||||||
if (this->size < MinBufferSize) this->size = MinBufferSize;
|
if (this->size < MinBufferSize) this->size = MinBufferSize;
|
||||||
this->allocate();
|
this->allocate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user