Explorar o código

Refactoring

(cherry picked from commit 484211795c306bbe150a82a79183eab7adfd8cb4)

Source commit: c3f15056bc97c251d79ccad535a2477d312800f3
Martin Prikryl %!s(int64=4) %!d(string=hai) anos
pai
achega
6065119808
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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]);
   }