浏览代码

#18051: Remove redundant verbatim prefixes

Xavier Cho 7 年之前
父节点
当前提交
f0bf5532fa
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      modules/mono/glue/cs_files/GD.cs
  2. 1 1
      modules/mono/glue/cs_files/StringExtensions.cs

+ 2 - 2
modules/mono/glue/cs_files/GD.cs

@@ -127,9 +127,9 @@ namespace Godot
             int count;
             int count;
 
 
             if (increment > 0)
             if (increment > 0)
-                count = (to - @from - 1) / increment + 1;
+                count = (to - from - 1) / increment + 1;
             else
             else
-                count = (@from - to - 1) / -increment + 1;
+                count = (from - to - 1) / -increment + 1;
 
 
             var ret = new int[count];
             var ret = new int[count];
 
 

+ 1 - 1
modules/mono/glue/cs_files/StringExtensions.cs

@@ -850,7 +850,7 @@ namespace Godot
                 int end = instance.Find(divisor, from);
                 int end = instance.Find(divisor, from);
                 if (end < 0)
                 if (end < 0)
                     end = len;
                     end = len;
-                if (allow_empty || end > @from)
+                if (allow_empty || end > from)
                     ret.Add(float.Parse(instance.Substring(from)));
                     ret.Add(float.Parse(instance.Substring(from)));
                 if (end == len)
                 if (end == len)
                     break;
                     break;