From: Sangyoon Jang Date: Thu, 15 May 2025 07:51:00 +0000 (+0900) Subject: Fix variable shadowing X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_9.0;p=platform%2Fcore%2Fbase%2Fbundle.git Fix variable shadowing Change-Id: Ia5288368f15facd687f12e6bb22d90d769c2040c Signed-off-by: Sangyoon Jang (cherry picked from commit e3117b1259d2948ac27d605edfa56ea713fcb479) --- diff --git a/src/tizen-database/database.hpp b/src/tizen-database/database.hpp index 9560d5c..53b61ce 100644 --- a/src/tizen-database/database.hpp +++ b/src/tizen-database/database.hpp @@ -773,7 +773,7 @@ class Database { } for (const auto& i : sql.GetBindingNameMap()) { - int pos = sqlite3_bind_parameter_index(stmt, i.first.c_str()); + pos = sqlite3_bind_parameter_index(stmt, i.first.c_str()); if (pos == 0) throw DbException("Invalid binding"); Bind(pos, i.second, stmt); @@ -810,7 +810,7 @@ class Database { } for (const auto& i : sql.GetBindingNameMap()) { - int pos = sqlite3_bind_parameter_index(stmt, i.first.c_str()); + pos = sqlite3_bind_parameter_index(stmt, i.first.c_str()); if (pos == 0) throw DbException("Invalid binding"); Bind(pos, i.second, stmt);