Skip to content

Commit 12d7a44

Browse files
committed
MapEditorController: Silence false-positive analyzer warning
1 parent 878f83f commit 12d7a44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/map/map_editor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3971,6 +3971,9 @@ void MapEditorController::setMapAndView(Map* map, MapView* map_view)
39713971
{
39723972
Q_ASSERT(map);
39733973
Q_ASSERT(map_view);
3974+
#ifdef __clang_analyzer__
3975+
if (!map || !map_view) { return; }
3976+
#endif
39743977

39753978
if (this->map)
39763979
{

0 commit comments

Comments
 (0)