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:
@ -131,12 +131,12 @@ int ImageMapsList::link (object::Object *key, int x, int y)
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
int Image::CLASS_ID = -1;
|
||||
std::intptr_t Image::CLASS_ID = -1;
|
||||
|
||||
Image::Image(const char *altText)
|
||||
{
|
||||
DBG_OBJ_CREATE ("dw::Image");
|
||||
registerName ("dw::Image", &CLASS_ID);
|
||||
registerName ("dw::Image", typeid(*this), &CLASS_ID);
|
||||
this->altText = altText ? dStrdup (altText) : NULL;
|
||||
altTextWidth = -1; // not yet calculated
|
||||
buffer = NULL;
|
||||
|
||||
Reference in New Issue
Block a user