From 9f9d05d8cfb8076a4067a0e3c7561781521225ed Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 18 五月 2021 17:31:45 +0800
Subject: [PATCH] trivial.

---
 box/box.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/box/box.cc b/box/box.cc
index f83f2fd..6f07fa7 100644
--- a/box/box.cc
+++ b/box/box.cc
@@ -41,7 +41,7 @@
 		}
 		return false;
 	}
-	void Apply(std::function<void(const std::string &id, const std::string &desc)> f) const
+	void Apply(std::function<void(const std::string &id, const std::string &desc)> const &f) const
 	{
 		for (auto &kv : functions_) {
 			f(kv.second.id_, kv.second.desc_);

--
Gitblit v1.8.0