1
0
Эх сурвалжийг харах

Refactoring

(cherry picked from commit 484211795c306bbe150a82a79183eab7adfd8cb4)

Source commit: c3f15056bc97c251d79ccad535a2477d312800f3
Martin Prikryl 3 жил өмнө
parent
commit
6065119808

+ 2 - 2
source/core/FileMasks.cpp

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