Browse Source

Refactoring

(cherry picked from commit 484211795c306bbe150a82a79183eab7adfd8cb4)

Source commit: c3f15056bc97c251d79ccad535a2477d312800f3
Martin Prikryl 3 years ago
parent
commit
6065119808
1 changed files with 2 additions and 2 deletions
  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]);
   }