diff --git a/src/module/dw.hpp b/src/module/dw.hpp index 4df1ee3..dfe7335 100644 --- a/src/module/dw.hpp +++ b/src/module/dw.hpp @@ -25,7 +25,7 @@ namespace demonware return server; } - static std::shared_ptr register_stun_server(std::string name) + static std::shared_ptr register_stun_server(const std::string& name) { std::lock_guard _(server_mutex_); auto server = std::make_shared(name); diff --git a/src/utils/string.hpp b/src/utils/string.hpp index c51f2b6..d7776d4 100644 --- a/src/utils/string.hpp +++ b/src/utils/string.hpp @@ -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();