mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
Make some functions const
This commit is contained in:
parent
a8d1769ca7
commit
d52b5f1e6a
2 changed files with 5 additions and 4 deletions
|
@ -44,14 +44,14 @@ ProcessStream::ProcessStream(PcmListener* pcmListener, boost::asio::io_context&
|
|||
}
|
||||
|
||||
|
||||
bool ProcessStream::fileExists(const std::string& filename)
|
||||
bool ProcessStream::fileExists(const std::string& filename) const
|
||||
{
|
||||
struct stat buffer;
|
||||
return (stat(filename.c_str(), &buffer) == 0);
|
||||
}
|
||||
|
||||
|
||||
std::string ProcessStream::findExe(const std::string& filename)
|
||||
std::string ProcessStream::findExe(const std::string& filename) const
|
||||
{
|
||||
/// check if filename exists
|
||||
if (fileExists(filename))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue