Small fixes
This commit is contained in:
parent
1f738d8a02
commit
89aee4b00e
@ -25,7 +25,7 @@ namespace demonware
|
||||
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_);
|
||||
auto server = std::make_shared<stun_server>(name);
|
||||
|
@ -39,7 +39,7 @@ namespace utils::string
|
||||
class entry final
|
||||
{
|
||||
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;
|
||||
this->allocate();
|
||||
|
Loading…
Reference in New Issue
Block a user