Make some functions const

This commit is contained in:
badaix 2020-03-25 08:37:18 +01:00
parent a8d1769ca7
commit d52b5f1e6a
2 changed files with 5 additions and 4 deletions

View file

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