Fix Reference error in AppControl class
authorSeungkeun Lee <sngn.lee@samsung.com>
Wed, 6 Jan 2016 02:50:23 +0000 (11:50 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Wed, 6 Jan 2016 02:50:23 +0000 (11:50 +0900)
 - Stack object was referenced on out of stack.
 - Change to reference(&) paramenter instead of value parameter.

common/app_control.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d625056..ce625e9
@@ -50,7 +50,7 @@ static bool BundleAddDataArray(bundle* target, const std::string& key,
   int n = value_array.size();
   std::vector<const char*> v;
   std::for_each(value_array.begin(), value_array.end(),
-                [&v] (std::string str) {
+                [&v] (const std::string& str) {
                   v.push_back(static_cast<const char*>(str.c_str()));
                 });