From 7babe991d954b4db2d0f7692c323ed589e9fae02 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 30 Sep 2024 21:49:59 +0200 Subject: [PATCH] Code typo fixes --- autotest/cpp/test_cpl.cpp | 2 +- frmts/avif/avifdataset.cpp | 2 +- frmts/mem/memdataset.cpp | 2 +- gcore/gdaldataset.cpp | 2 +- ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp | 2 +- port/cpl_vsi_mem.cpp | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autotest/cpp/test_cpl.cpp b/autotest/cpp/test_cpl.cpp index 84f182e7e02a..f3d775370842 100644 --- a/autotest/cpp/test_cpl.cpp +++ b/autotest/cpp/test_cpl.cpp @@ -5367,7 +5367,7 @@ TEST_F(test_cpl, VSIMemGenerateHiddenFilename) EXPECT_EQ(VSIStatL(pszFilename1, &sStat), 0); } - // Get's back content + // Gets back content EXPECT_EQ(VSIGetMemFileBuffer(pszFilename1, nullptr, false), abyDummyData); diff --git a/frmts/avif/avifdataset.cpp b/frmts/avif/avifdataset.cpp index bb94754d211c..ff771630e413 100644 --- a/frmts/avif/avifdataset.cpp +++ b/frmts/avif/avifdataset.cpp @@ -1163,7 +1163,7 @@ void GDALRegister_AVIF() bool bMayHaveWriteSupport = true; if (!poDM->IsKnownDriver("AVIF")) { - // If we are not built as a defered plugin, check now if libavif has + // If we are not built as a deferred plugin, check now if libavif has // write support bMayHaveWriteSupport = poDriver->GetMetadataItem(GDAL_DMD_CREATIONOPTIONLIST) != nullptr; diff --git a/frmts/mem/memdataset.cpp b/frmts/mem/memdataset.cpp index bf1502a42ea5..39847b264698 100644 --- a/frmts/mem/memdataset.cpp +++ b/frmts/mem/memdataset.cpp @@ -1115,7 +1115,7 @@ std::unique_ptr MEMDataset::Clone(int nScopeFlags, poNewBand->psPam->CopyFrom(*(poSrcMEMBand->psPam)); } - // Instanciates a mask band when needed. + // Instantiates a mask band when needed. if ((poSrcMEMBand->nMaskFlags & (GMF_ALL_VALID | GMF_ALPHA | GMF_NODATA)) == 0) { diff --git a/gcore/gdaldataset.cpp b/gcore/gdaldataset.cpp index cc5289d644f5..188ef9c62fd6 100644 --- a/gcore/gdaldataset.cpp +++ b/gcore/gdaldataset.cpp @@ -10244,7 +10244,7 @@ CPLErr GDALDatasetReadCompressedData(GDALDatasetH hDS, const char *pszFormat, * If set to true, the dataset from which they have been * cloned from must remain opened during the lifetime of * its clones. - * @return true if the Clone() method is expecte to succeed with the same values + * @return true if the Clone() method is expected to succeed with the same values * of nScopeFlags and bCanShareState. */ bool GDALDataset::CanBeCloned(int nScopeFlags, diff --git a/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp b/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp index bf1ca9dd1b19..00c7a3bd2cc8 100644 --- a/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp +++ b/ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp @@ -331,7 +331,7 @@ static void OGRSQLITE_STDDEV_SAMP_Finalize(sqlite3_context *pContext) // Percentile related code inspired from https://sqlite.org/src/file/ext/misc/percentile.c // of https://www.sqlite.org/draft/percentile.html -// Constant addd to Percentile::rPct, since rPct is initialized to 0 when unset. +// Constant added to Percentile::rPct, since rPct is initialized to 0 when unset. constexpr double PERCENT_ADD_CONSTANT = 1; namespace diff --git a/port/cpl_vsi_mem.cpp b/port/cpl_vsi_mem.cpp index 9f90a033046b..6f3e1a5db707 100644 --- a/port/cpl_vsi_mem.cpp +++ b/port/cpl_vsi_mem.cpp @@ -76,7 +76,7 @@ // Such files are of the form "/vsimem/.#!HIDDEN!#./{counter}/{pszFilename}" // // The high-level design constraint is that "/vsimem/.#!HIDDEN!#." acts as a -// "side" hiearchy, but still under the "/vsimem/" namespace, so that code +// "side" hierarchy, but still under the "/vsimem/" namespace, so that code // having special processing of filenames starting with /vsimem/ can still work. // The structure of the returned filename is also such that those files form // independent hierarchies, i.e. the tree generated by a @@ -91,7 +91,7 @@ // "/vsimem/.#!HIDDEN!#./{counter}/{pszFilename}" // to cause the implicit creation of "/vsimem/.#!HIDDEN!#./{counter}" and // "/vsimem/.#!HIDDEN!#". This is done so that users don't have to care about -// cleaning such implicit directories that are upper in the hiearchy w.r.t. +// cleaning such implicit directories that are upper in the hierarchy w.r.t. // to what we return to them. // - But we want the creation of file or directory // "/vsimem/.#!HIDDEN!#./{counter}/{pszFilename}/something_added_by_user"