From d1b2c8c01e482db81d071d14b65a2542f92ea59c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 28 Jun 2009 19:05:07 +0000 Subject: Make NamedLock take a std::string instead of a char pointer for C++ style. --- lib/common/NamedLock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/common/NamedLock.h') 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(); -- cgit v1.2.3