From caacc8f4e1ff69d545fb55c2a0a1d46e5cdbae3f Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Wed, 31 Jul 2013 16:01:25 +0000 Subject: Remove a stray double assign that g++ 4.8 thinks has ill-defined sequencing. BUG= R=bungeman@google.com Review URL: https://codereview.chromium.org/21352003 git-svn-id: http://skia.googlecode.com/svn/trunk@10462 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkTemplates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h index ac67f92c0c..e49cc47ea9 100644 --- a/include/core/SkTemplates.h +++ b/include/core/SkTemplates.h @@ -323,7 +323,7 @@ public: /** Resize the memory area pointed to by the current ptr without preserving contents. */ void reset(size_t count) { sk_free(fPtr); - fPtr = fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP); + fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP); } T* get() const { return fPtr; } -- cgit v1.2.3