From: zhaokai Date: Fri, 27 Feb 2015 07:42:32 +0000 (+0800) Subject: Add const to the variable: needle X-Git-Tag: v0.27.0~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b9d347fc4029627327aa53f3f99d1055e987746;p=folly.git 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 --- 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 {