diff options
author | costan <costan@google.com> | 2018-03-12 09:14:44 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-03-12 09:24:48 -0700 |
commit | aece2068d7375f987685b8b145288c5557f9ce50 (patch) | |
tree | e0a0f3b5d8c961572e8222344dbb64e43c1e217e /util/testutil.h | |
parent | ddab751002588fe58955357d68d12b062e038d0d (diff) | |
download | leveldb-aece2068d7375f987685b8b145288c5557f9ce50.tar.gz |
Remove extern from function declarations.
External linkage is the default for function declarations in C++.
This also fixes ClangTidy errors generated by removing the "extern"
keyword as described above.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188730416
Diffstat (limited to 'util/testutil.h')
-rw-r--r-- | util/testutil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/testutil.h b/util/testutil.h index d7e4583..8726bf7 100644 --- a/util/testutil.h +++ b/util/testutil.h @@ -14,17 +14,17 @@ namespace test { // Store in *dst a random string of length "len" and return a Slice that // references the generated data. -extern Slice RandomString(Random* rnd, int len, std::string* dst); +Slice RandomString(Random* rnd, int len, std::string* dst); // Return a random key with the specified length that may contain interesting // characters (e.g. \x00, \xff, etc.). -extern std::string RandomKey(Random* rnd, int len); +std::string RandomKey(Random* rnd, int len); // Store in *dst a string of length "len" that will compress to // "N*compressed_fraction" bytes and return a Slice that references // the generated data. -extern Slice CompressibleString(Random* rnd, double compressed_fraction, - size_t len, std::string* dst); +Slice CompressibleString(Random* rnd, double compressed_fraction, + size_t len, std::string* dst); // A wrapper that allows injection of errors. class ErrorEnv : public EnvWrapper { |