From 647b282b26e47842f8794ff68810b995dd716e4c Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 30 Mar 2016 09:07:09 +0200 Subject: [PATCH] Add missing & to parameter --- include/mstch/mstch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mstch/mstch.hpp b/include/mstch/mstch.hpp index 58d3330..20c4099 100644 --- a/include/mstch/mstch.hpp +++ b/include/mstch/mstch.hpp @@ -24,7 +24,7 @@ class object_t { return cache[name]; } - bool has(const std::string name) const { + bool has(const std::string& name) const { return methods.count(name) != 0; }