Skip to content

Commit

Permalink
Code typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 6, 2025
1 parent 8d8fb57 commit af5370f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/ogr2ogr_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4053,7 +4053,7 @@ static void DoFieldTypeConversion(GDALDataset *poDstDS,
EQUAL(poDstDriver->GetDescription(), "ESRI Shapefile"))
{
// Just be silent. The shapefile driver will itself emit a
// warning mentionning it converts DateTime to String.
// warning mentioning it converts DateTime to String.
}
else if (!bQuiet)
{
Expand Down
2 changes: 1 addition & 1 deletion autotest/ogr/ogr_mvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ def test_ogr_mvt_write_custom_tiling_scheme_WorldCRS84Quad(tmp_vsimem, TILING_SC
out_ds = None

if TILING_SCHEME == "EPSG:4326,-180,90,180,1,1":
# If explictly setting tile_matrix_width_zoom_0 == 1,
# If explicitly setting tile_matrix_width_zoom_0 == 1,
# we have no tiles beyond longitude 0 degree
with pytest.raises(Exception):
ogr.Open(filename + "/0")
Expand Down
3 changes: 1 addition & 2 deletions frmts/vrt/vrtexpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class MathExpression
* the expression is evaluated.
*
* @return CE_None if the expression can be successfully parsed and all
* symbols have been registe vrtexpression_exprtk.cpp
vrtexpression_muparser.cppred, CE_Failure otherwise.
* symbols have been registered, CE_Failure otherwise.
*
* @since 3.11
*/
Expand Down
2 changes: 1 addition & 1 deletion gcore/gdal_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ class CPL_DLL GDALRasterBand : public GDALMajorObject
double dfGeolocX, double dfGeolocY, const OGRSpatialReference *poSRS,
GDALRIOResampleAlg eInterpolation, double *pdfRealValue,
double *pdfImagValue = nullptr,
CSLConstList papszTransfomerOptions = nullptr) const;
CSLConstList papszTransformerOptions = nullptr) const;

virtual CPLErr InterpolateAtPoint(double dfPixel, double dfLine,
GDALRIOResampleAlg eInterpolation,
Expand Down
2 changes: 1 addition & 1 deletion gcore/gdal_priv_templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ template <class Tin> struct sGDALCopyWord<Tin, double>
}
};

// Floating point input and output, converting between indentical types: simply copy
// Floating point input and output, converting between identical types: simply copy

template <> struct sGDALCopyWord<GFloat16, GFloat16>
{
Expand Down
2 changes: 1 addition & 1 deletion ogr/ogrsf_frmts/sqlite/ogrsqlitedatasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4255,7 +4255,7 @@ OGRErr OGRSQLiteBaseDataSource::SoftRollbackTransaction()
OGRErr OGRSQLiteBaseDataSource::StartSavepoint(const std::string &osName)
{

// A SAVEPOINT implicity starts a transaction, let's fake one
// A SAVEPOINT implicitly starts a transaction, let's fake one
if (!IsInTransaction())
{
m_bImplicitTransactionOpened = true;
Expand Down
2 changes: 1 addition & 1 deletion port/cpl_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ using GFloat16 = cpl::Float16;
#endif

// Define some GDAL wrappers. Their C equivalents are defined in `cpl_port.h`.
// (These wrappers are not necessary any mroe in C++, one can always
// (These wrappers are not necessary any more in C++, one can always
// call `isnan` etc directly.)

template <typename T> constexpr int CPLIsNan(T x)
Expand Down
2 changes: 1 addition & 1 deletion scripts/typos_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ int CPL_DLL creat(const char *path, mode_t mode)
msg = msg.replace("overfow", "overflow")
msg = msg.replace("divison", "division")
msg = msg.replace("behaviour", "behavior")
scan-build -o $GDAL_TOPDIR/scanbuildoutput -sarif -v -enable-checker alpha.unix.cstring.OutOfBounds,alpha.unix.cstring.BufferOverlap,optin.cplusplus.VirtualCall,optin.cplusplus.UninitializedObject make -j4
scan-build -o $GDAL_TOPDIR/scanbuildoutput -sarif -v -enable-checker alpha.unix.cstring.OutOfBounds,alpha.unix.cstring.BufferOverlap,optin.cplusplus.VirtualCall,optin.cplusplus.UninitializedObject make -j$(nproc)
"JPNG",
" <Value>JPNG</Value>"
|| poDS->current.comp == IL_JPNG
Expand Down

0 comments on commit af5370f

Please sign in to comment.