From fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:09:54 +0000 Subject: Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) This CL is part I of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6485054 git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkTemplates.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/core/SkTemplates.h') diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h index c152b31aac..e4c8bc44ca 100644 --- a/include/core/SkTemplates.h +++ b/include/core/SkTemplates.h @@ -141,7 +141,7 @@ public: /** Return the array of T elements. Will be NULL if count == 0 */ T* get() const { return fArray; } - + /** Return the nth element in the array */ T& operator[](int index) const { @@ -170,7 +170,7 @@ public: } fCount = count; } - + ~SkAutoSTArray() { if (fCount > N) { delete[] fArray; @@ -182,22 +182,22 @@ public: } } } - + /** Return the number of T elements in the array */ size_t count() const { return fCount; } - + /** Return the array of T elements. Will be NULL if count == 0 */ T* get() const { return fArray; } - + /** Return the nth element in the array */ T& operator[](int index) const { SkASSERT((unsigned)index < fCount); return fArray[index]; } - + private: size_t fCount; T* fArray; -- cgit v1.2.3