document_db.cc: pass const parameter by reference

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
main
Danny Al-Gaaf 10 years ago
parent 4cc8643baf
commit 0de452ee9f
  1. 2
      utilities/document/document_db.cc

@ -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(); }

Loading…
Cancel
Save