document_db.cc: pass const parameter by reference

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2014-09-29 23:09:28 +02:00
parent 4cc8643baf
commit 0de452ee9f

View File

@ -376,7 +376,7 @@ class IndexKey {
class SimpleSortedIndex : public Index { class SimpleSortedIndex : public Index {
public: public:
SimpleSortedIndex(const std::string field, const std::string& name) SimpleSortedIndex(const std::string& field, const std::string& name)
: field_(field), name_(name) {} : field_(field), name_(name) {}
virtual const char* Name() const override { return name_.c_str(); } virtual const char* Name() const override { return name_.c_str(); }