Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 13, 2024
1 parent 1bad03e commit d3dc839
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autotest/cpp/test_ogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ TEST_F(test_ogr, OGRGeometryCollection_copy_constructor_illegal_use)
}
EXPECT_STREQ(CPLGetLastErrorMsg(),
"Illegal use of OGRGeometryCollection::operator=(): trying to "
"assign an incomptible sub-geometry");
"assign an incompatible sub-geometry");
EXPECT_TRUE(mp.IsEmpty());
}

Expand Down Expand Up @@ -364,7 +364,7 @@ TEST_F(test_ogr, OGRCurvePolygon_copy_constructor_illegal_use)
}
EXPECT_STREQ(CPLGetLastErrorMsg(),
"Illegal use of OGRCurvePolygon::operator=(): trying to "
"assign an incomptible sub-geometry");
"assign an incompatible sub-geometry");
EXPECT_TRUE(poly.IsEmpty());
}

Expand Down
2 changes: 1 addition & 1 deletion ogr/ogrcurvepolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OGRCurvePolygon &OGRCurvePolygon::operator=(const OGRCurvePolygon &other)
{
CPLError(CE_Failure, CPLE_AppDefined,
"Illegal use of OGRCurvePolygon::operator=(): "
"trying to assign an incomptible sub-geometry");
"trying to assign an incompatible sub-geometry");
return *this;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ogr/ogrgeometrycollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ OGRGeometryCollection::operator=(const OGRGeometryCollection &other)
{
CPLError(CE_Failure, CPLE_AppDefined,
"Illegal use of OGRGeometryCollection::operator=(): "
"trying to assign an incomptible sub-geometry");
"trying to assign an incompatible sub-geometry");
return *this;
}
}
Expand Down

0 comments on commit d3dc839

Please sign in to comment.