From 0de452ee9f8afa9cae2a72b8fb3c3dd59b28a9d9 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 29 Sep 2014 23:09:28 +0200 Subject: [PATCH] document_db.cc: pass const parameter by reference Signed-off-by: Danny Al-Gaaf --- utilities/document/document_db.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/document/document_db.cc b/utilities/document/document_db.cc index 8e15a52ca..b9157f274 100644 --- a/utilities/document/document_db.cc +++ b/utilities/document/document_db.cc @@ -376,7 +376,7 @@ class IndexKey { class SimpleSortedIndex : public Index { public: - SimpleSortedIndex(const std::string field, const std::string& name) + SimpleSortedIndex(const std::string& field, const std::string& name) : field_(field), name_(name) {} virtual const char* Name() const override { return name_.c_str(); }