1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

pci: pass string var as const reference

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
This commit is contained in:
Steffen Vogel 2023-01-12 18:18:12 +01:00 committed by Steffen Vogel
parent 4ff1b159dd
commit cebd94cf5d
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ private:
villas::Logger log;
protected:
std::fstream openSysFs(const std::string subPath, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out) const;
std::fstream openSysFs(const std::string &subPath, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out) const;
};
class DeviceList : public std::list<std::shared_ptr<Device>> {

View file

@ -446,7 +446,7 @@ int Device::getIommuGroup() const
return atoi(group);
}
std::fstream Device::openSysFs(const std::string subPath, std::ios_base::openmode mode) const
std::fstream Device::openSysFs(const std::string &subPath, std::ios_base::openmode mode) const
{
std::fstream file;