Skip to content

Commit

Permalink
Traktor: Fatal assert in Widget if dtor without explicitly been destr…
Browse files Browse the repository at this point in the history
…oyed.
  • Loading branch information
apistol78 committed Jan 15, 2024
1 parent 9b4d664 commit 765209d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/Ui/Widget.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* TRAKTOR
* Copyright (c) 2022 Anders Pistol.
* Copyright (c) 2022-2024 Anders Pistol.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -14,10 +14,8 @@
#include "Ui/Widget.h"
#include "Ui/Itf/IUserWidget.h"

namespace traktor
namespace traktor::ui
{
namespace ui
{

T_IMPLEMENT_RTTI_CLASS(L"traktor.ui.Widget", Widget, EventSubject)

Expand All @@ -31,7 +29,7 @@ Widget::Widget()

Widget::~Widget()
{
T_ASSERT(!m_widget);
T_FATAL_ASSERT(!m_widget);
}

bool Widget::create(Widget* parent, int style)
Expand Down Expand Up @@ -553,5 +551,4 @@ IWidget* Widget::getIWidget() const
return m_widget;
}

}
}

0 comments on commit 765209d

Please sign in to comment.