From cb512bd096632b1775ebcaf0dd7426cb7d759a28 Mon Sep 17 00:00:00 2001 From: Seungkeun Lee Date: Wed, 6 Jan 2016 11:50:23 +0900 Subject: [PATCH] Fix Reference error in AppControl class - Stack object was referenced on out of stack. - Change to reference(&) paramenter instead of value parameter. --- common/app_control.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 common/app_control.cc diff --git a/common/app_control.cc b/common/app_control.cc old mode 100644 new mode 100755 index d625056..ce625e9 --- a/common/app_control.cc +++ b/common/app_control.cc @@ -50,7 +50,7 @@ static bool BundleAddDataArray(bundle* target, const std::string& key, int n = value_array.size(); std::vector v; std::for_each(value_array.begin(), value_array.end(), - [&v] (std::string str) { + [&v] (const std::string& str) { v.push_back(static_cast(str.c_str())); }); -- 2.7.4