diff --git a/lib/include/srslte/common/buffer_pool.h b/lib/include/srslte/common/buffer_pool.h index b3fe76bc7..9ee042664 100644 --- a/lib/include/srslte/common/buffer_pool.h +++ b/lib/include/srslte/common/buffer_pool.h @@ -233,13 +233,13 @@ inline void byte_buffer_deleter::operator()(byte_buffer_t* buf) const inline unique_byte_buffer_t allocate_unique_buffer(byte_buffer_pool& pool, bool blocking = false) { - return std::move(unique_byte_buffer_t(pool.allocate(nullptr, blocking), byte_buffer_deleter(&pool))); + return unique_byte_buffer_t(pool.allocate(nullptr, blocking), byte_buffer_deleter(&pool)); } inline unique_byte_buffer_t allocate_unique_buffer(byte_buffer_pool& pool, const char* debug_name, bool blocking = false) { - return std::move(unique_byte_buffer_t(pool.allocate(debug_name, blocking), byte_buffer_deleter(&pool))); + return unique_byte_buffer_t(pool.allocate(debug_name, blocking), byte_buffer_deleter(&pool)); } } // namespace srslte diff --git a/lib/include/srslte/common/logger.h b/lib/include/srslte/common/logger.h index af90e6f1d..32608b221 100644 --- a/lib/include/srslte/common/logger.h +++ b/lib/include/srslte/common/logger.h @@ -92,7 +92,7 @@ public: }; typedef std::unique_ptr unique_log_str_t; - void log_char(const char* msg) { log(std::move(unique_log_str_t(new log_str(msg), log_str_deleter()))); } + void log_char(const char* msg) { log(unique_log_str_t(new log_str(msg), log_str_deleter())); } virtual void log(unique_log_str_t msg) = 0;