diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-06-28 19:05:07 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-06-28 19:05:07 +0000 |
commit | d1b2c8c01e482db81d071d14b65a2542f92ea59c (patch) | |
tree | f22f448bae8b795fe8c407b1a7426f7d77c5ee60 /lib/common/NamedLock.h | |
parent | 95433c3e00a790d6c16c8da5171b354e9497b5ef (diff) |
Make NamedLock take a std::string instead of a char pointer for C++
style.
Diffstat (limited to 'lib/common/NamedLock.h')
-rw-r--r-- | lib/common/NamedLock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/NamedLock.h b/lib/common/NamedLock.h index 5eac712a..534115db 100644 --- a/lib/common/NamedLock.h +++ b/lib/common/NamedLock.h @@ -28,7 +28,7 @@ private: NamedLock(const NamedLock &); public: - bool TryAndGetLock(const char *Filename, int mode = 0755); + bool TryAndGetLock(const std::string& rFilename, int mode = 0755); bool GotLock() {return mFileDescriptor != -1;} void ReleaseLock(); |