aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/Far/OverwriteDialogFar.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/UI/Far/OverwriteDialogFar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/CPP/7zip/UI/Far/OverwriteDialogFar.cpp b/CPP/7zip/UI/Far/OverwriteDialogFar.cpp
index b8fc565..a45d2b2 100644
--- a/CPP/7zip/UI/Far/OverwriteDialogFar.cpp
+++ b/CPP/7zip/UI/Far/OverwriteDialogFar.cpp
@@ -35,7 +35,7 @@ static void SetFileInfoStrings(const CFileInfo &fileInfo,
35 { 35 {
36 ConvertUInt64ToString(fileInfo.Size, buffer); 36 ConvertUInt64ToString(fileInfo.Size, buffer);
37 fileInfoStrings.Size = buffer; 37 fileInfoStrings.Size = buffer;
38 fileInfoStrings.Size += ' '; 38 fileInfoStrings.Size.Add_Space();
39 fileInfoStrings.Size += g_StartupInfo.GetMsgString(NMessageID::kOverwriteBytes); 39 fileInfoStrings.Size += g_StartupInfo.GetMsgString(NMessageID::kOverwriteBytes);
40 } 40 }
41 else 41 else
@@ -49,7 +49,7 @@ static void SetFileInfoStrings(const CFileInfo &fileInfo,
49 char timeString[32]; 49 char timeString[32];
50 ConvertUtcFileTimeToString(fileInfo.Time, timeString); 50 ConvertUtcFileTimeToString(fileInfo.Time, timeString);
51 fileInfoStrings.Time = g_StartupInfo.GetMsgString(NMessageID::kOverwriteModifiedOn); 51 fileInfoStrings.Time = g_StartupInfo.GetMsgString(NMessageID::kOverwriteModifiedOn);
52 fileInfoStrings.Time += ' '; 52 fileInfoStrings.Time.Add_Space();
53 fileInfoStrings.Time += timeString; 53 fileInfoStrings.Time += timeString;
54 } 54 }
55} 55}
@@ -96,12 +96,12 @@ NResult::EEnum Execute(const CFileInfo &oldFileInfo, const CFileInfo &newFileInf
96 ReduceString2(name2, maxNameLen - kNameOffset); 96 ReduceString2(name2, maxNameLen - kNameOffset);
97 } 97 }
98 98
99 AString pref1A (UnicodeStringToMultiByte(pref1, CP_OEMCP)); 99 const AString pref1A (UnicodeStringToMultiByte(pref1, CP_OEMCP));
100 AString pref2A (UnicodeStringToMultiByte(pref2, CP_OEMCP)); 100 const AString pref2A (UnicodeStringToMultiByte(pref2, CP_OEMCP));
101 AString name1A (UnicodeStringToMultiByte(name1, CP_OEMCP)); 101 const AString name1A (UnicodeStringToMultiByte(name1, CP_OEMCP));
102 AString name2A (UnicodeStringToMultiByte(name2, CP_OEMCP)); 102 const AString name2A (UnicodeStringToMultiByte(name2, CP_OEMCP));
103 103
104 struct CInitDialogItem initItems[]={ 104 const struct CInitDialogItem initItems[]={
105 { DI_DOUBLEBOX, 3, 1, kXSize - 4, kYSize - 2, false, false, 0, false, NMessageID::kOverwriteTitle, NULL, NULL }, 105 { DI_DOUBLEBOX, 3, 1, kXSize - 4, kYSize - 2, false, false, 0, false, NMessageID::kOverwriteTitle, NULL, NULL },
106 { DI_TEXT, 5, 2, 0, 0, false, false, 0, false, NMessageID::kOverwriteMessage1, NULL, NULL }, 106 { DI_TEXT, 5, 2, 0, 0, false, false, 0, false, NMessageID::kOverwriteMessage1, NULL, NULL },
107 107
@@ -131,10 +131,10 @@ NResult::EEnum Execute(const CFileInfo &oldFileInfo, const CFileInfo &newFileInf
131 { DI_BUTTON, 0, kYSize - 3, 0, 0, false, false, DIF_CENTERGROUP, false, NMessageID::kOverwriteCancel, NULL, NULL } 131 { DI_BUTTON, 0, kYSize - 3, 0, 0, false, false, DIF_CENTERGROUP, false, NMessageID::kOverwriteCancel, NULL, NULL }
132 }; 132 };
133 133
134 const int kNumDialogItems = ARRAY_SIZE(initItems); 134 const int kNumDialogItems = Z7_ARRAY_SIZE(initItems);
135 FarDialogItem aDialogItems[kNumDialogItems]; 135 FarDialogItem aDialogItems[kNumDialogItems];
136 g_StartupInfo.InitDialogItems(initItems, aDialogItems, kNumDialogItems); 136 g_StartupInfo.InitDialogItems(initItems, aDialogItems, kNumDialogItems);
137 int anAskCode = g_StartupInfo.ShowDialog(kXSize, kYSize, 137 const int anAskCode = g_StartupInfo.ShowDialog(kXSize, kYSize,
138 NULL, aDialogItems, kNumDialogItems); 138 NULL, aDialogItems, kNumDialogItems);
139 const int kButtonStartPos = kNumDialogItems - 6; 139 const int kButtonStartPos = kNumDialogItems - 6;
140 if (anAskCode >= kButtonStartPos && anAskCode < kNumDialogItems) 140 if (anAskCode >= kButtonStartPos && anAskCode < kNumDialogItems)