Fix SkTLazy(const T*) initialization
authorfmalita <fmalita@chromium.org>
Wed, 24 Aug 2016 18:03:24 +0000 (11:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 24 Aug 2016 18:03:24 +0000 (11:03 -0700)
Splitting the fix from https://codereview.chromium.org/2271743002/.

R=bungeman@google.com,mtklein@google.com
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2278633002

Review-Url: https://codereview.chromium.org/2278633002

include/core/SkTLazy.h

index 31dce60..cb08387 100644 (file)
@@ -99,8 +99,8 @@ public:
     T* getMaybeNull() const { return fPtr; }
 
 private:
-    T* fPtr; // nullptr or fStorage
     SkAlignedSTStorage<1, T> fStorage;
+    T*                       fPtr; // nullptr or fStorage
 };
 
 /**