Skip to content

Commit

Permalink
corruption_test.cc: pass parameter by reference
Browse files Browse the repository at this point in the history
Fix for:

[db/corruption_test.cc:134]: (performance) Function parameter
 'fname' 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 7506198 commit 68ca534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/corruption_test.cc
Expand Up @@ -131,7 +131,7 @@ class CorruptionTest {
ASSERT_GE(max_expected, correct);
}

void CorruptFile(const std::string fname, int offset, int bytes_to_corrupt) {
void CorruptFile(const std::string& fname, int offset, int bytes_to_corrupt) {
struct stat sbuf;
if (stat(fname.c_str(), &sbuf) != 0) {
const char* msg = strerror(errno);
Expand Down

0 comments on commit 68ca534

Please sign in to comment.