diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 08:16:28 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-14 08:16:28 +0000 |
commit | aa121d4d7d88174d60403edf70fb0a105c9031c4 (patch) | |
tree | 55ad59669570025690e3babeface765df401cf7c /base/lazy_instance.h | |
parent | 625332e06437018bf696dce93a4b2bd2c5e0b118 (diff) | |
download | chromium_src-aa121d4d7d88174d60403edf70fb0a105c9031c4.zip chromium_src-aa121d4d7d88174d60403edf70fb0a105c9031c4.tar.gz chromium_src-aa121d4d7d88174d60403edf70fb0a105c9031c4.tar.bz2 |
Build fix
TBR=thakis
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/lazy_instance.h')
-rw-r--r-- | base/lazy_instance.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/lazy_instance.h b/base/lazy_instance.h index 874e87e..bdf5ce3 100644 --- a/base/lazy_instance.h +++ b/base/lazy_instance.h @@ -128,7 +128,8 @@ class LazyInstance : public LazyInstanceHelper { // Create the instance in the space provided by |buf_|. instance_ = Traits::New(buf_); // Traits::Delete will be null for LeakyLazyInstannceTraits - CompleteInstance(this, (Traits::Delete == NULL) ? NULL : OnExit); + void (*dtor)(void*) = Traits::Delete; + CompleteInstance(this, (dtor == NULL) ? NULL : OnExit); } // This annotation helps race detectors recognize correct lock-less |