Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Side by Side Diff: include/core/SkTArray.h

Issue 1088763005: Cleanup: Remove unnecessary double-semicolons. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/textblobtransforms.cpp ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTArray_DEFINED 8 #ifndef SkTArray_DEFINED
9 #define SkTArray_DEFINED 9 #define SkTArray_DEFINED
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 T* begin() { 293 T* begin() {
294 return fItemArray; 294 return fItemArray;
295 } 295 }
296 const T* begin() const { 296 const T* begin() const {
297 return fItemArray; 297 return fItemArray;
298 } 298 }
299 T* end() { 299 T* end() {
300 return fItemArray ? fItemArray + fCount : NULL; 300 return fItemArray ? fItemArray + fCount : NULL;
301 } 301 }
302 const T* end() const { 302 const T* end() const {
303 return fItemArray ? fItemArray + fCount : NULL;; 303 return fItemArray ? fItemArray + fCount : NULL;
304 } 304 }
305 305
306 /** 306 /**
307 * Get the i^th element. 307 * Get the i^th element.
308 */ 308 */
309 T& operator[] (int i) { 309 T& operator[] (int i) {
310 SkASSERT(i < fCount); 310 SkASSERT(i < fCount);
311 SkASSERT(i >= 0); 311 SkASSERT(i >= 0);
312 return fItemArray[i]; 312 return fItemArray[i];
313 } 313 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 SkSTArray& operator= (const INHERITED& array) { 540 SkSTArray& operator= (const INHERITED& array) {
541 INHERITED::operator=(array); 541 INHERITED::operator=(array);
542 return *this; 542 return *this;
543 } 543 }
544 544
545 private: 545 private:
546 SkAlignedSTStorage<N,T> fStorage; 546 SkAlignedSTStorage<N,T> fStorage;
547 }; 547 };
548 548
549 #endif 549 #endif
OLDNEW
« no previous file with comments | « gm/textblobtransforms.cpp ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698