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:
parent
fe95c246a3
commit
fe1385e2c6
2 changed files with 2 additions and 2 deletions
|
@ -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>> {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue