Small fixes

This commit is contained in:
Maurice Heumann 2019-11-28 21:55:56 +01:00
parent 1f738d8a02
commit 89aee4b00e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();