diff options
author | 2011-09-14 12:44:13 +0000 | |
---|---|---|
committer | 2011-09-14 12:44:13 +0000 | |
commit | cff323ecd8e9addbd55b34ce81db07bbe757977a (patch) | |
tree | 6393566f1d74a5643c69131993e05f84c6463af5 /include/core/SkTLazy.h | |
parent | 8966d0149b5df3f153771a7d6709fa81e9fb242d (diff) |
Shutup strict aliasing warnings in SkTLazy
Review URL: http://codereview.appspot.com/5020042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2263 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTLazy.h')
-rw-r--r-- | include/core/SkTLazy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkTLazy.h b/include/core/SkTLazy.h index 5747da033f..9cfaccbc7a 100644 --- a/include/core/SkTLazy.h +++ b/include/core/SkTLazy.h @@ -52,7 +52,7 @@ public: if (this->isValid()) { fPtr->~T(); } - fPtr = new (fStorage) T; + fPtr = new (SkTCast<T*>(fStorage)) T; return fPtr; } @@ -66,7 +66,7 @@ public: if (this->isValid()) { *fPtr = src; } else { - fPtr = new (fStorage) T(src); + fPtr = new (SkTCast<T*>(fStorage)) T(src); } return fPtr; } |