Skip to content

Commit

Permalink
Code typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 30, 2024
1 parent dc46a7b commit 7babe99
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autotest/cpp/test_cpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion frmts/avif/avifdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion frmts/mem/memdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ std::unique_ptr<GDALDataset> 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)
{
Expand Down
2 changes: 1 addition & 1 deletion gcore/gdaldataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ogr/ogrsf_frmts/sqlite/ogrsqlitesqlfunctionscommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions port/cpl_vsi_mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 7babe99

Please sign in to comment.