mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-23 19:38:31 +02:00
Fix warnings
This commit is contained in:
parent
f6b1e3f5d4
commit
6f03576270
16 changed files with 33 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -87,5 +87,5 @@ const std::error_category& category()
|
|||
|
||||
std::error_code make_error_code(ControlErrc errc)
|
||||
{
|
||||
return std::error_code(static_cast<int>(errc), snapcast::error::control::category());
|
||||
return {static_cast<int>(errc), snapcast::error::control::category()};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -46,9 +46,9 @@ using namespace std;
|
|||
namespace streamreader
|
||||
{
|
||||
|
||||
StreamManager::StreamManager(PcmStream::Listener* pcmListener, boost::asio::io_context& ioc, const ServerSettings& settings)
|
||||
StreamManager::StreamManager(PcmStream::Listener* pcmListener, boost::asio::io_context& ioc, ServerSettings settings)
|
||||
// const std::string& defaultSampleFormat, const std::string& defaultCodec, size_t defaultChunkBufferMs)
|
||||
: pcmListener_(pcmListener), settings_(settings), io_context_(ioc)
|
||||
: pcmListener_(pcmListener), settings_(std::move(settings)), io_context_(ioc)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -42,7 +42,7 @@ class StreamManager
|
|||
{
|
||||
public:
|
||||
/// C'tor
|
||||
StreamManager(PcmStream::Listener* pcmListener, boost::asio::io_context& ioc, const ServerSettings& settings);
|
||||
StreamManager(PcmStream::Listener* pcmListener, boost::asio::io_context& ioc, ServerSettings settings);
|
||||
|
||||
/// Construct and add a stream from @p uri
|
||||
/// @return the created stream
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue