projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f17916
)
Add const to the variable: needle
author
zhaokai
<loverszhao@gmail.com>
Fri, 27 Feb 2015 07:42:32 +0000
(15:42 +0800)
committer
Alecs King
<int@fb.com>
Tue, 3 Mar 2015 03:30:56 +0000
(19:30 -0800)
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
patch
|
blob
|
history
diff --git
a/folly/test/AsciiCaseInsensitiveBenchmark.cpp
b/folly/test/AsciiCaseInsensitiveBenchmark.cpp
index a916f4e573f3b0a4746084b5b92a249b212e106a..0086576351b43b58688ad6753940f783a101f218 100644
(file)
--- 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 {