From 6b9d347fc4029627327aa53f3f99d1055e987746 Mon Sep 17 00:00:00 2001 From: zhaokai Date: Fri, 27 Feb 2015 15:42:32 +0800 Subject: [PATCH] Add const to the variable: needle Summary: Make it clear that the variable is const Closes #139 Test Plan: authored tested, contbuild Reviewed By: markisaa@fb.com Subscribers: folly-diffs@, yfeldblum FB internal diff: D1878361 Signature: t1:1878361:1425071448:6871577ddb34f4a8dc30ea37842f9950c3825dde --- folly/test/AsciiCaseInsensitiveBenchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/test/AsciiCaseInsensitiveBenchmark.cpp b/folly/test/AsciiCaseInsensitiveBenchmark.cpp index a916f4e5..00865763 100644 --- a/folly/test/AsciiCaseInsensitiveBenchmark.cpp +++ b/folly/test/AsciiCaseInsensitiveBenchmark.cpp @@ -80,7 +80,7 @@ string lorem_ipsum = "vulputate quam urna quis eros. Donec vel." "\n"; -string needle = "commodo"; +const string needle = "commodo"; // legacy implementation struct AsciiCaseInsensitiveLegacy { -- 2.34.1