Ver Fonte

Refactoring

(cherry picked from commit 484211795c306bbe150a82a79183eab7adfd8cb4)

Source commit: c3f15056bc97c251d79ccad535a2477d312800f3
Martin Prikryl há 3 anos atrás
pai
commit
6065119808
1 ficheiros alterados com 2 adições e 2 exclusões
  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]);
   }