From 3d53147822dfde54eb32ab00b36a7ceda1a7bcf1 Mon Sep 17 00:00:00 2001 From: "deanm@google.com" <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> Date: Mon, 8 Sep 2008 14:47:24 +0000 Subject: Add a DISALLOW_COPY_AND_ASSIGN to LazyInstanceHelper. Review URL: http://codereview.chromium.org/1811 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1839 0039d316-1c4b-4281-b951-d872f2087c98 --- base/lazy_instance.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/lazy_instance.h') diff --git a/base/lazy_instance.h b/base/lazy_instance.h index 5be41bd..33eefe8 100644 --- a/base/lazy_instance.h +++ b/base/lazy_instance.h @@ -72,6 +72,9 @@ class LazyInstanceHelper { void EnsureInstance(void* instance, void (*ctor)(void*), void (*dtor)(void*)); base::subtle::Atomic32 state_; + + private: + DISALLOW_COPY_AND_ASSIGN(LazyInstanceHelper); }; template <typename Type, typename Traits = DefaultLazyInstanceTraits<Type> > -- cgit v1.1