From d8e711a096961b382cac7e64e4aa7cfdd284ce7a Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 28 Oct 2012 16:48:05 +0100 Subject: [PATCH] make sure a TempDir class cant be copied --- src/utils/pathut.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/pathut.h b/src/utils/pathut.h index 1508a0df..4d9ce34d 100644 --- a/src/utils/pathut.h +++ b/src/utils/pathut.h @@ -101,6 +101,8 @@ public: private: string m_dirname; string m_reason; + TempDir(const TempDir &) {} + TempDir& operator=(const TempDir &) {return *this;}; }; /// Lock/pid file class. This is quite close to the pidfile_xxx