diff options
| author | Patrick Venture <venture@google.com> | 2018-06-11 09:39:57 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2018-06-12 19:43:56 -0700 |
| commit | e49bbfc7ff829641267ca28eba2547466f41175c (patch) | |
| tree | 1d8c9838460a8cf67e921287f72958be8d942b78 /sysfs | |
| parent | 7208eedee8a292935a742317b244542b2ee383c6 (diff) | |
| download | phosphor-pid-control-e49bbfc7ff829641267ca28eba2547466f41175c.tar.gz phosphor-pid-control-e49bbfc7ff829641267ca28eba2547466f41175c.zip | |
sysfs: const-ify string parameters in constructors
Change-Id: I8cc427f5a99a11aaae0f18f0ddf5269e2142c33f
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'sysfs')
| -rw-r--r-- | sysfs/sysfswrite.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysfs/sysfswrite.hpp b/sysfs/sysfswrite.hpp index 9f7083c..989f800 100644 --- a/sysfs/sysfswrite.hpp +++ b/sysfs/sysfswrite.hpp @@ -13,7 +13,8 @@ class SysFsWritePercent : public WriteInterface { public: - SysFsWritePercent(std::string& writepath, int64_t min, int64_t max) + SysFsWritePercent(const std::string& writepath, int64_t min, + int64_t max) : WriteInterface(min, max), _writepath(FixupPath(writepath)) { } @@ -27,7 +28,7 @@ class SysFsWritePercent : public WriteInterface class SysFsWrite : public WriteInterface { public: - SysFsWrite(std::string& writepath, int64_t min, int64_t max) + SysFsWrite(const std::string& writepath, int64_t min, int64_t max) : WriteInterface(min, max), _writepath(FixupPath(writepath)) { } |

