浏览代码

Refactoring

(cherry picked from commit 484211795c306bbe150a82a79183eab7adfd8cb4)

Source commit: c3f15056bc97c251d79ccad535a2477d312800f3
Martin Prikryl 3 年之前
父节点
当前提交
6065119808
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/core/FileMasks.cpp

+ 2 - 2
source/core/FileMasks.cpp

@@ -280,7 +280,7 @@ void __fastcall TFileMasks::Init()
 //---------------------------------------------------------------------------
 void __fastcall TFileMasks::DoInit(bool Delete)
 {
-  for (int Index = 0; Index < 4; Index++)
+  for (size_t Index = 0; Index < LENOF(FMasksStr); Index++)
   {
     if (Delete)
     {
@@ -294,7 +294,7 @@ void __fastcall TFileMasks::Clear()
 {
   DoInit(true);
 
-  for (int Index = 0; Index < 4; Index++)
+  for (size_t Index = 0; Index < LENOF(FMasks); Index++)
   {
     Clear(FMasks[Index]);
   }