os/LevelDBStore.h: pass const string by reference to past_prefix()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-01 16:33:40 +01:00
parent ea7907fc2b
commit b8711633e9

View File

@ -185,7 +185,7 @@ public:
return (key.compare(leveldb::Slice(past_prefix(prefix))) < 0) &&
(key.compare(leveldb::Slice(prefix)) > 0);
}
static string past_prefix(const string prefix) {
static string past_prefix(const string &prefix) {
string limit = prefix;
limit.push_back(1);
return limit;