ClassIDs are now actually typeinfo name pointers.

I'll see, next, about the `instanceOf` thing, and going with
more normal RTTI routes.
This commit is contained in:
2025-08-09 05:11:24 -04:00
parent abbb7fdbf9
commit c107600de6
26 changed files with 51 additions and 50 deletions

View File

@ -32,12 +32,12 @@ namespace ui {
using namespace lout;
using namespace lout::object;
int Embed::CLASS_ID = -1;
std::intptr_t Embed::CLASS_ID = -1;
Embed::Embed(Resource *resource)
{
DBG_OBJ_CREATE ("dw::core::ui::Embed");
registerName ("dw::core::ui::Embed", &CLASS_ID);
registerName ("dw::core::ui::Embed", typeid(*this), &CLASS_ID);
this->resource = resource;
resource->setEmbed (this);
DBG_OBJ_ASSOC_CHILD (resource);