Skip to content

Commit 84a48b5

Browse files
authored
src(cpp): fix spelling in code comments (#8465)
1 parent b98698a commit 84a48b5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/jrd/IntlManager.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,27 +184,27 @@ const IntlManager::CharSetAliasDefinition IntlManager::defaultCharSetAliases[] =
184184
{"ANSI", CS_ISO8859_1},
185185
{"ISO88592", CS_ISO8859_2},
186186
{"LATIN2", CS_ISO8859_2},
187-
{"ISO-8859-2", CS_ISO8859_2}, // Prefered MIME name
187+
{"ISO-8859-2", CS_ISO8859_2}, // Preferred MIME name
188188
{"ISO88593", CS_ISO8859_3},
189189
{"LATIN3", CS_ISO8859_3},
190-
{"ISO-8859-3", CS_ISO8859_3}, // Prefered MIME name
190+
{"ISO-8859-3", CS_ISO8859_3}, // Preferred MIME name
191191
{"ISO88594", CS_ISO8859_4},
192192
{"LATIN4", CS_ISO8859_4},
193-
{"ISO-8859-4", CS_ISO8859_4}, // Prefered MIME name
193+
{"ISO-8859-4", CS_ISO8859_4}, // Preferred MIME name
194194
{"ISO88595", CS_ISO8859_5},
195-
{"ISO-8859-5", CS_ISO8859_5}, // Prefered MIME name
195+
{"ISO-8859-5", CS_ISO8859_5}, // Preferred MIME name
196196
{"ISO88596", CS_ISO8859_6},
197-
{"ISO-8859-6", CS_ISO8859_6}, // Prefered MIME name
197+
{"ISO-8859-6", CS_ISO8859_6}, // Preferred MIME name
198198
{"ISO88597", CS_ISO8859_7},
199-
{"ISO-8859-7", CS_ISO8859_7}, // Prefered MIME name
199+
{"ISO-8859-7", CS_ISO8859_7}, // Preferred MIME name
200200
{"ISO88598", CS_ISO8859_8},
201-
{"ISO-8859-8", CS_ISO8859_8}, // Prefered MIME name
201+
{"ISO-8859-8", CS_ISO8859_8}, // Preferred MIME name
202202
{"ISO88599", CS_ISO8859_9},
203203
{"LATIN5", CS_ISO8859_9},
204-
{"ISO-8859-9", CS_ISO8859_9}, // Prefered MIME name
204+
{"ISO-8859-9", CS_ISO8859_9}, // Preferred MIME name
205205
{"ISO885913", CS_ISO8859_13},
206206
{"LATIN7", CS_ISO8859_13},
207-
{"ISO-8859-13", CS_ISO8859_13}, // Prefered MIME name
207+
{"ISO-8859-13", CS_ISO8859_13}, // Preferred MIME name
208208
{"DOS_852", CS_DOS_852},
209209
{"DOS_857", CS_DOS_857},
210210
{"DOS_860", CS_DOS_860},

src/jrd/jrd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6897,7 +6897,7 @@ static void find_intl_charset(thread_db* tdbb, Jrd::Attachment* attachment, cons
68976897
**************************************
68986898
*
68996899
* Functional description
6900-
* Attachment has declared it's prefered character set
6900+
* Attachment has declared its preferred character set
69016901
* as part of LC_CTYPE, passed over with the attachment
69026902
* block. Now let's resolve that to an internal subtype id.
69036903
*

src/jrd/optimizer/Retrieval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ bool Retrieval::betterInversion(const InversionCandidate* inv1,
724724
{
725725
if (inv1->dependencies > inv2->dependencies)
726726
{
727-
// Index used for a relationship must be always prefered to
727+
// Index used for a relationship must be always preferred to
728728
// the filtering ones, otherwise the nested loop join has
729729
// no chances to be better than a sort merge.
730730
// An alternative (simplified) condition might be:

src/yvalve/gds.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ void API_ROUTINE isc_decode_date(const ISC_QUAD* date, void* times_arg)
511511
* Functional description
512512
* Convert from internal timestamp format to UNIX time structure.
513513
*
514-
* Note: this API is historical - the prefered entrypoint is
514+
* Note: this API is historical - the preferred entrypoint is
515515
* isc_decode_timestamp
516516
*
517517
**************************************/
@@ -602,7 +602,7 @@ void API_ROUTINE isc_encode_date(const void* times_arg, ISC_QUAD* date)
602602
* Functional description
603603
* Convert from UNIX time structure to internal timestamp format.
604604
*
605-
* Note: This API is historical -- the prefered entrypoint is
605+
* Note: This API is historical -- the preferred entrypoint is
606606
* isc_encode_timestamp
607607
*
608608
**************************************/

0 commit comments

Comments
 (0)