From a1ebeb25e9acfcd801e089e063311d716b83b8a5 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 1 Oct 2015 09:43:39 -0700 Subject: Remove const from `const int loops`. This drives me nuts, and prevents `while (loops --> 0)`. BUG=skia: Review URL: https://codereview.chromium.org/1379923005 --- bench/SortBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/SortBench.cpp') diff --git a/bench/SortBench.cpp b/bench/SortBench.cpp index f621670d16..9bc11c7639 100644 --- a/bench/SortBench.cpp +++ b/bench/SortBench.cpp @@ -124,7 +124,7 @@ protected: gRec[fType].fProc(fUnsorted.get()); } - void onDraw(const int loops, SkCanvas*) override { + void onDraw(int loops, SkCanvas*) override { SkAutoTMalloc sorted(N); for (int i = 0; i < loops; i++) { memcpy(sorted.get(), fUnsorted.get(), N*sizeof(int)); -- cgit v1.2.3