refactor(Core): apply clang-tidy modernize-use-equals-default (#3834)

This commit is contained in:
Francesco Borzì
2020-12-07 19:21:55 +01:00
committed by GitHub
parent 0b8ec1f6ee
commit 1cf39b3d22
35 changed files with 48 additions and 56 deletions

View File

@@ -17,7 +17,7 @@ class WorldObject;
struct CellArea
{
CellArea() {}
CellArea() = default;
CellArea(CellCoord low, CellCoord high) : low_bound(low), high_bound(high) {}
bool operator!() const { return low_bound == high_bound; }

View File

@@ -40,7 +40,7 @@ public:
/** destructor to clean up its resources. This includes unloading the
grid if it has not been unload.
*/
~Grid() {}
~Grid() = default;
/** an object of interested enters the grid
*/