mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 08:15:34 +00:00
Avoid virtual call in TerrainGrid dtor
/home/elsid/dev/openmw/components/terrain/terraingrid.cpp:31:9: warning: Call to virtual function during destruction [clang-analyzer-optin.cplusplus.VirtualCall] unloadCell(mGrid.begin()->first.first, mGrid.begin()->first.second); ^ /home/elsid/dev/openmw/components/terrain/terraingrid.cpp:29:12: note: Assuming the condition is true while (!mGrid.empty()) ^ /home/elsid/dev/openmw/components/terrain/terraingrid.cpp:29:5: note: Loop condition is true. Entering loop body while (!mGrid.empty()) ^ /home/elsid/dev/openmw/components/terrain/terraingrid.cpp:31:9: note: This destructor of an object of type '~TerrainGrid' has not returned when the virtual method was called unloadCell(mGrid.begin()->first.first, mGrid.begin()->first.second); ^ /home/elsid/dev/openmw/components/terrain/terraingrid.cpp:31:9: note: Call to virtual function during destruction
This commit is contained in:
parent
2e1d8a5e55
commit
4cd2ff9a3d
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ TerrainGrid::~TerrainGrid()
|
|||
{
|
||||
while (!mGrid.empty())
|
||||
{
|
||||
unloadCell(mGrid.begin()->first.first, mGrid.begin()->first.second);
|
||||
TerrainGrid::unloadCell(mGrid.begin()->first.first, mGrid.begin()->first.second);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue