Skip to content

Commit

Permalink
table/table_test.cc: pass func parameter by reference
Browse files Browse the repository at this point in the history
Fix for:

[table/table_test.cc:1218]: (performance) Function parameter
 'prefix' should be passed by reference.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent 93548ce commit 063471b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table_test.cc
Expand Up @@ -1216,7 +1216,7 @@ static std::string RandomString(Random* rnd, int len) {
return r;
}

void AddInternalKey(TableConstructor* c, const std::string prefix,
void AddInternalKey(TableConstructor* c, const std::string& prefix,
int suffix_len = 800) {
static Random rnd(1023);
InternalKey k(prefix + RandomString(&rnd, 800), 0, kTypeValue);
Expand Down

0 comments on commit 063471b

Please sign in to comment.