diff --git a/docs/changes.md b/docs/changes.md index 7689cfd95..6901e7753 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,5 +1,8 @@ # 最新动态 +2022/03/11 + * 修复theme_gen的模板部分编译出错问题(感谢智明提供补丁) + 2022/03/10 * 完善fscript debugger * 完善line\_number diff --git a/tools/theme_gen/theme_gen.cc b/tools/theme_gen/theme_gen.cc index fcc9a039c..fce912804 100644 --- a/tools/theme_gen/theme_gen.cc +++ b/tools/theme_gen/theme_gen.cc @@ -82,7 +82,7 @@ bool Style::Reset() { bool Style::Merge(Style& other) { str_values.Merge(other.str_values); - for (typename NameValues::const_iter_type i = (other.str_values).values.begin(); + for (NameValues::const_iter_type i = (other.str_values).values.begin(); i != (other.str_values).values.end(); i++) { bin_values.RemoveValue(i->name); int_values.RemoveValue(i->name); @@ -90,7 +90,7 @@ bool Style::Merge(Style& other) { } bin_values.Merge(other.bin_values); - for (typename NameValues::const_iter_type i = (other.bin_values).values.begin(); + for (NameValues::const_iter_type i = (other.bin_values).values.begin(); i != (other.bin_values).values.end(); i++) { str_values.RemoveValue(i->name); int_values.RemoveValue(i->name); @@ -98,7 +98,7 @@ bool Style::Merge(Style& other) { } int_values.Merge(other.int_values); - for (typename NameValues::const_iter_type i = (other.int_values).values.begin(); + for (NameValues::const_iter_type i = (other.int_values).values.begin(); i != (other.int_values).values.end(); i++) { bin_values.RemoveValue(i->name); str_values.RemoveValue(i->name); @@ -106,7 +106,7 @@ bool Style::Merge(Style& other) { } uint_values.Merge(other.uint_values); - for (typename NameValues::const_iter_type i = (other.uint_values).values.begin(); + for (NameValues::const_iter_type i = (other.uint_values).values.begin(); i != (other.uint_values).values.end(); i++) { bin_values.RemoveValue(i->name); int_values.RemoveValue(i->name);